:root {
    /* Brand Colors */
    --primary-red: #E53935;
    --primary-red-dark: #B71C1C;
    --accent-yellow: #FFC727;
    --accent-yellow-soft: #FFF5CC;
    --link-blue: #2563EB;

    /* Neutral System */
    --bg-body: #F5F5F7;
    --bg-card: #FFFFFF;
    --border: #E5E7EB;
    --text-main: #111827;
    --text-muted: #6B7280;
    --text-on-red: #FFFFFF;

    /* Typography */
    --heading-font: "Poppins", sans-serif;
    --body-font: "Inter", sans-serif;
}

/* Override body styles for login page */
body {
    margin: 0;
    padding: 0;
    background: var(--bg-body);
    font-family: var(--body-font);
    overflow-x: hidden;
}

/* Hide navigation bar on login page */
.for-login .web-footer,
.for-login .navbar,
.for-login nav,
header {
    display: none !important;
}

/* Hide default login content, show custom */
.for-login .page-card-head,
.for-login .login-content {
    display: none;
}

/* Main Container - Two Column Layout - FULL VIEWPORT */
.velonix-login-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    margin: 0;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
}

/* LEFT AREA - Login Form */
.velonix-login-left {
    flex: 1;
    padding: 50px 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-body);
    overflow-y: auto;
}

/* Logo */
.velonix-logo svg {
    width: 80px;
    height: auto;
}

/* Subtitle under logo */
.velonix-subtitle {
    font-family: var(--body-font);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 12px 0 25px 0;
}

/* Heading */
.velonix-heading {
    font-family: var(--heading-font);
    font-size: 28px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 25px;
    margin-top: 0;
}

/* Labels */
.velonix-label {
    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 6px;
    display: block;
}

/* Inputs */
.velonix-input {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: white;
    border: 2px solid var(--border) !important;
    font-size: 15px;
    font-family: var(--body-font);
    margin-bottom: 18px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.velonix-input:focus {
    outline: none;
    border-color: var(--primary-red) !important;
    box-shadow: none;
}

/* Password field positioning */
.password-field {
    position: relative;
}

.password-field .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 13px;
    user-select: none;
}

/* Remember + Forgot Row */
.velonix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.velonix-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--text-main);
    font-family: var(--body-font);
}

.velonix-remember input[type="checkbox"] {
    cursor: pointer;
}

.velonix-forgot {
    font-size: 14px;
    color: var(--link-blue);
    text-decoration: none;
    font-weight: 500;
    font-family: var(--body-font);
}

.velonix-forgot:hover {
    text-decoration: underline;
}

/* Login Button */
.velonix-login-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: var(--primary-red) !important;
    color: var(--text-on-red) !important;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 10px;
}

.velonix-login-btn:hover {
    background: var(--primary-red-dark) !important;
}

/* Sign Up line */
.velonix-signup {
    font-size: 14px;
    color: var(--text-main);
    text-align: left;
    margin-top: 20px;
    font-family: var(--body-font);
}

.velonix-signup a {
    color: var(--link-blue);
    font-weight: 600;
    text-decoration: none;
}

.velonix-signup a:hover {
    text-decoration: underline;
}

/* RIGHT RED PANEL */
.velonix-login-right {
    flex: 1;
    background: var(--primary-red);
    min-width: 0;
}

/* Form groups spacing fix */
.velonix-login-left .form-group {
    margin-bottom: 0;
}

.velonix-login-left .page-card-body {
    padding: 0;
    background: transparent;
}

.velonix-login-left .page-card-actions {
    padding: 0;
    background: transparent;
}

/* Responsive Design */
@media (max-width: 992px) {
    .velonix-login-container {
        flex-direction: column;
    }

    .velonix-login-left {
        padding: 40px 30px;
    }

    .velonix-login-right {
        min-height: 200px;
        flex: 0 0 auto;
    }
}

@media (max-width: 576px) {
    .velonix-login-left {
        padding: 30px 20px;
    }

    .velonix-heading {
        font-size: 24px;
    }

    .velonix-logo svg {
        width: 60px;
    }
}

/* Fix for default Frappe styles bleeding through */
.for-login {
    background: transparent;
    padding: 0;
    margin: 0;
}

/* Ensure signup and forgot password sections use default styling */
.for-signup,
.for-forgot {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}