/* ── BASE ────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
body.login-body {
    margin: 0;
    padding: 0;
    background: #0b1d45;
    font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
}

/* ── PAGE LAYOUT ─────────────────────────────────────────────── */
.login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* background: linear-gradient(135deg, #f0f4ff 0%, #dce6ff 50%, #c8d9ff 100%); */
}
.login-main {
    display: flex;
    align-items: stretch;
    flex: 1;
    width: 1200px;
    margin: auto;
    padding-top: 48px;
    padding-bottom: 48px;
}

/* ══════════════════════════════════════════════════════════════
   LEFT PANEL — dark navy branding
══════════════════════════════════════════════════════════════ */
.login-left {
    flex: 0 0 55%;
    background: transparent;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 48px 60px;
    position: relative;
    overflow: hidden;
}
/* subtle decorative circles */
.login-left::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255,255,255,0.025);
    pointer-events: none;
}
.login-left::after {
    content: '';
    position: absolute;
    bottom: -180px;
    left: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(255,255,255,0.018);
    pointer-events: none;
}
.left-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    /* border:10px solid green; */
}

/* Logo */
.brand-logo {
    margin-bottom: 20px;
}
.brand-logo img {
    width: 180px;
    /* filter: brightness(0) invert(1); */
}
/* IOR Badge */
.ior-badge {
    display: inline-flex;
    align-items: center;
    /* gap: 8px; */
    /* background: rgba(11,29,69,0.07); */
    /* border: 1px solid rgba(11,29,69,0.18); */
    /* border-radius: 40px; */
    /* padding: 5px 14px; */
    color: #0b1d45;
    font-size: 28px;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 30px;
}
.ior-badge .red-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    flex-shrink: 0;
}

/* Headline */
.brand-headline {
    color: #0b1d45;
    /* font-size: 34px; */
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    max-width: 480px;
    text-align: center;
}

/* Description */
.brand-desc {
    color: #3d5080;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 36px 0;
    max-width: 480px;
}

/* Feature Tags */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.feat-tag {
    border: 1px solid rgba(11,29,69,0.22);
    border-radius: 8px;
    padding: 4px 13px;
    color: #0b1d45;
    font-size: 13px;
}

/* ISO Badge */
.iso-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(11,29,69,0.07);
    border: 1px solid rgba(11,29,69,0.18);
    border-radius: 8px;
    padding: 5px 13px;
    color: #3d5080;
    font-size: 13px;
    width: fit-content;
}

/* Global header */
.login-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #eef0f4;
    border-bottom: 1px solid #dde1ea;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6B7280;
}
.login-header i {
    margin-right: 6px;
    color: #6B7280;
}

/* Global footer */
.login-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #eef0f4;
    border-top: 1px solid #dde1ea;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #6B7280;
}
.login-footer .footer-links {
    display: flex;
    gap: 22px;
}
.login-footer a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.15s;
}
.login-footer a:hover {
    color: #111827;
}


/* ══════════════════════════════════════════════════════════════
   RIGHT PANEL — same navy bg, floating white card
══════════════════════════════════════════════════════════════ */
.login-right {
    flex: 1;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 40px;
    overflow-y: auto;
}
/* .login-right > .brand-logo {
    margin-bottom: 20px;
    text-align: center;
} */

/* Right inner — same height as left-inner */
.right-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    width: 100%;
}

/* White card */
.login-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 40px 36px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

/* ── FORM BOXES ──────────────────────────────────────────────── */
.signin-box,
.signup-box {
    display: none;
    width: 100%;
}
.signin-box.active,
.signup-box.active {
    display: block;
}

/* ── FORM SHARED ─────────────────────────────────────────────── */
.form-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    letter-spacing: -0.3px;
}
.form-subtitle {
    font-size: 14px;
    color: #6B7280;
    margin: 0 0 24px;
}

/* Microsoft / SSO Button */
.microsoft-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    background: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    margin-bottom: 0;
}
.microsoft-btn:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
    color: #111827;
    text-decoration: none;
}

/* OR Divider */
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9CA3AF;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin: 14px 0;
}
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}

/* Form Groups */
.login-form-group {
    margin-bottom: 16px;
}
.login-form-group > label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.login-form-group .form-control {
    height: 44px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s;
    padding: 0 14px;
    width: 100%;
}
.login-form-group .form-control:focus {
    border-color: #0b1d45;
    box-shadow: 0 0 0 3px rgba(11,29,69,0.08) !important;
    outline: none;
}
.login-form-group .form-control::placeholder {
    color: #9CA3AF;
}
.field-hint {
    display: block;
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 5px;
}

/* Label row — label + forgot password side by side */
.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.label-row > label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}
.forgot-link {
    font-size: 13px;
    color: #2563EB;
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover {
    text-decoration: underline;
    color: #1D4ED8;
}

/* Password field with eye icon */
.password-field {
    position: relative;
}
.password-field .form-control {
    padding-right: 44px;
}
.eye-btn {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #9CA3AF;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    line-height: 1;
}
.eye-btn:hover {
    color: #4B5563;
}

/* Remember me row */
.remember-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 22px;
}
.remember-row input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #0b1d45;
}
.remember-row label {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    margin: 0;
    line-height: 1.45;
}

/* Primary Sign In button */
.btn-primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    background: #0b1d45;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.15s;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    opacity: 1;
}
.btn-primary-action:hover {
    background: #0b1d45;
    opacity: 0.95;
    /* color: #ffffff !important; */
}

/* Invitation-only info box */
.invitation-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}
.invitation-box strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 5px;
}
.invitation-box p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.55;
}
.invitation-box a {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
}
.invitation-box a:hover {
    text-decoration: underline;
}

/* Switch form link row */
.switch-form-row {
    text-align: center;
    font-size: 13px;
    color: #6B7280;
}
.switch-form-row .button.non-active {
    color: #2563EB;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    cursor: pointer;
}
.switch-form-row .button.non-active:hover {
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════
   SIGN UP FORM
══════════════════════════════════════════════════════════════ */
.signup-form .form-control,
.signup-form .form-select {
    height: 42px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 14px;
    color: #111827;
    box-shadow: none !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.signup-form .form-control:focus,
.signup-form .form-select:focus {
    border-color: #0b1d45;
    box-shadow: 0 0 0 3px rgba(11,29,69,0.08) !important;
}
.signup-form .form-control::placeholder {
    color: #9CA3AF;
}
.signup-form .section-two {
    display: none;
}
.signup-form .action-buttons {
    margin-top: 18px;
}
.signup-form .action-buttons > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.signup-form .action-buttons > div.right-row {
    justify-content: flex-end;
    margin-top: 12px;
    font-size: 13px;
    color: #6B7280;
    gap: 4px;
}

/* Signup buttons */
.signup-form .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
    height: 40px;
}
.signup-form .button.next,
.signup-form .button.signup {
    padding: 0 24px;
    background: #0b1d45;
    color: #ffffff;
}
.signup-form .button.next:hover,
.signup-form .button.signup:hover {
    opacity: 0.88;
    color: #fff;
}
.signup-form .button.back {
    width: 40px;
    background: #F3F4F6;
    color: #374151;
    border: 1px solid #E5E7EB;
    font-size: 24px;
    padding: 0;
}
.signup-form .button.back:hover {
    background: #E5E7EB;
}
.signup-form .button.non-active,
.signup-form .button.sign-in {
    height: auto;
    background: none;
    color: #2563EB;
    font-weight: 600;
    font-size: 13px;
    padding: 0;
}
.signup-form .button.non-active:hover,
.signup-form .button.sign-in:hover {
    text-decoration: underline;
}

.resent-otp-box {
    color: #9CA3AF;
    font-size: 13px;
}
.resent-otp {
    color: #9CA3AF;
    text-decoration: none;
}
.resent-otp:hover {
    color: #4B5563;
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */

/* Large desktops — constrain width with padding so card never touches edge */
@media (max-width: 1260px) {
    .login-main {
        width: 100%;
        padding: 40px 30px;
    }
}

/* Medium desktops */
@media (max-width: 1100px) {
    .login-left { padding: 40px 36px; }
    .brand-headline { font-size: 28px; }
    .login-right { padding: 26px 30px; }
}

/* Small desktops / landscape tablets */
@media (max-width: 960px) {
    .login-left { 
        flex: 0 0 48%;
        padding: 32px 24px;
    }
    .brand-headline { font-size: 24px; }
    .brand-desc { font-size: 14px; }
    .login-right { padding: 20px 24px 26px 24px; }
    .login-card { padding: 32px 28px; }
}

/* Tablets — stack vertically, hide left branding text, keep card centred */
@media (max-width: 768px) {
    .login-main {
        flex-direction: column;
        padding: 45px 0;
    }
    .brand-logo {
        margin-bottom: 24px;
    }
    .brand-logo img {
        width: 140px;
    }
    .ior-badge {
        margin-bottom: 16px;
    }
    .brand-headline {
        font-size: 20px;
        margin-bottom: 16px;
    }
    .brand-desc { display: none; }
    .feature-tags {
        /* display: none; */
        margin-bottom: 16px;
    }
    /* .feature-tags { display: none; } */
    /* .iso-badge { display: none; } */
    
    .login-left {
        padding: 32px 20px 0px 20px;
    }
    .left-inner {
        align-items: center;
    }
    .login-right {
        /* flex: 1; */
        /* align-items: flex-start; */
        padding: 18px 20px 24px 20px;
    }
    .login-card {
        padding: 28px 22px 24px;
        border-radius: 12px;
        max-width: 100%;
    }
    .login-header, .login-footer { padding: 12px 20px; }
}


@media (max-width: 480px) {
    .login-main {
        /* padding: 60px 0 30px 0; */
        padding: 50px 0 30px 0;
    }
    .login-left {
        padding: 0 16px;
    }
    .brand-logo img { width: 120px; }
    .ior-badge {
        font-size: 25px;
        /* padding: 4px 10px; */
    }
    .brand-headline { font-size: 18px; margin-bottom: 16px; }
    .feature-tags {
        justify-content: center;
    }
    .login-right { padding: 0px 16px 28px; }
    .login-card {
        padding: 20px 16px;
        border-radius: 10px;
        box-shadow: 0 12px 32px rgba(0,0,0,0.28);
    }
    /* .form-title { font-size: 22px; } */
    .microsoft-btn { font-size: 13px; height: 42px; }
    .btn-primary-action { height: 42px; font-size: 14px; }
    .login-form-group .form-control { height: 40px; font-size: 13px; }
    .login-header, .login-footer {
        padding: 10px 16px;
        font-size: 12px;
    }
    .login-footer .footer-links { gap: 14px; }
}

/* Mobile portrait — full-width single column */
@media (max-width: 425px) {
    .login-header {
        justify-content: center;
    }
    .login-main {
        /* padding-bottom: 0px; */
        padding: 50px 0px;
        /* border: 1px solid red; */
    }
    .login-footer {
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    .login-footer .footer-links {
        flex-direction: row;
        gap: 10px;
    }
}