/* Sign-in page — design reference: Figma 1920x960, gap 257px H / 103px V */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', sans-serif; overflow: hidden; }

/* ── OUTER CONTAINER ── */
.auth-outer {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to right, #050a24 50%, #fcfcfd 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* 103/960 = 10.73vh, 257/1920 = 13.39vw */
    padding: 10.73vh 13.39vw;
}

/* ── INNER CONTAINER ── */
.auth-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 12px 60px rgba(0,0,0,0.25), 0 4px 20px rgba(0,0,0,0.10);
}

/* ── LEFT PANEL ── */
.auth-left {
    flex: 0 0 50%;
    background: linear-gradient(145deg, #000814 0%, #000f4b 40%, #071268 75%, #0e1e8a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(255,90,0,0.28) 0%, transparent 70%);
    border-radius: 50%;
}
.auth-left::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255,140,60,0.18) 0%, transparent 70%);
    border-radius: 50%;
}
.brand-logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; z-index: 2;
}
.brand-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ff5a00;
    text-transform: uppercase;
}
/* Poppins has no Greek glyphs, so the Lambda ("A" stand-in) characters
   fall back to a different font that renders visibly lighter than real
   Poppins at the same font-weight — making V/N look heavier by
   comparison. Toning the real Latin letters down to 600 is what
   actually matches their rendered weight to the Lambdas' (empirically
   checked side by side; 600 was the closest match). */
.brand-logo-text .brand-glyph-latin {
    font-weight: 600;
}
.left-hero {
    z-index: 2; flex: 1;
    display: flex; flex-direction: column;
    justify-content: flex-start;
    margin-top: clamp(64px, 5.42vw, 104px);
}
.left-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(24px, 1.98vw, 38px); font-weight: 500; color: white;
    line-height: 100%; letter-spacing: 0;
    margin-bottom: clamp(18px, 1.35vw, 26px);
}
.left-hero h1 .highlight {
    background: linear-gradient(90deg, #ffb08a, #ff5a00);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.left-hero p { font-family: 'Poppins', sans-serif; font-size: clamp(12px, 0.73vw, 14px); font-weight: 500; color: #94a3b8; line-height: 160%; letter-spacing: 0; max-width: 380px; margin-bottom: clamp(80px, 6.72vw, 129px); }
.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item { display: flex; align-items: center; gap: 14px; }
.fi-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem; flex-shrink: 0;
}
.fi-orange { background: rgba(255,90,0,0.25); color: #ffa070; }
.fi-cyan   { background: rgba(255,255,255,0.12); color: #c8d6ff; }
.fi-green  { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.fi-yellow { background: rgba(251,191,36,0.2); color: #fcd34d; }
.fi-text { font-family: 'Poppins', sans-serif; font-size: clamp(14px, 0.89vw, 17px); font-weight: 500; color: #cbd5e1; line-height: 100%; letter-spacing: 0; }
.left-footer { z-index: 2; font-size: 0.75rem; color: #475569; }

/* ── RIGHT PANEL ── */
.auth-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    overflow-y: auto;
}
.auth-card {
    width: 100%;
    max-width: 520px;
}

/* heading */
.card-heading { margin-bottom: 32px; }
.badge-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,90,0,0.1); color: #ff5a00;
    border: 1px solid rgba(255,90,0,0.2);
    padding: 4px 12px; border-radius: 50px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.8px; text-transform: uppercase;
    margin-bottom: 14px;
}
.card-heading h2 {
    font-size: 1.95rem; font-weight: 800; color: #0a0e24;
    letter-spacing: -0.5px; line-height: 1.2;
}
.card-heading p { margin-top: 8px; font-size: 0.9rem; color: #374066; }

/* form */
.form-group { margin-bottom: 22px; }
.form-label {
    display: block; font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.6px; text-transform: uppercase;
    color: #374066; margin-bottom: 7px;
}
.input-wrap { position: relative; }
.input-icon {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%); color: #8896ba; font-size: 0.9rem;
}
.form-control {
    width: 100%; height: 50px;
    border: 2px solid #94a3b8; border-radius: 12px;
    background: #fff; padding-left: 42px;
    font-size: 0.9rem; color: #0a0e24;
    transition: all 0.2s; font-family: 'Inter', sans-serif;
    outline: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.form-control:focus {
    border-color: #ff5a00;
    box-shadow: 0 0 0 4px rgba(255,90,0,0.12);
}
.form-control.is-invalid { border-color: #ef4444; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgba(239,68,68,0.1); }
.invalid-feedback {
    font-size: 0.78rem; color: #ef4444; margin-top: 6px;
    display: flex; align-items: center; gap: 5px;
}
.form-hint { font-size: 0.75rem; color: #8896ba; margin-top: 6px; }

/* remember me */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
}
.remember-me input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #ff5a00;
    cursor: pointer;
}
.remember-me label {
    font-size: 0.85rem;
    color: #374066;
    cursor: pointer;
}

/* button */
.btn-auth {
    height: 52px; width: 100%;
    background: linear-gradient(135deg, #ff5a00, #cc4800);
    color: white; border: none; border-radius: 12px;
    font-size: 0.95rem; font-weight: 700; letter-spacing: 0.3px;
    cursor: pointer; transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(255,90,0,0.4);
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-auth:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,90,0,0.5); }
.btn-auth:active { transform: translateY(0); }
.btn-auth:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-spinner {
    display: none; width: 18px; height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: white; border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* alerts */
.auth-alert {
    padding: 12px 16px; border-radius: 10px;
    font-size: 0.85rem; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
}
.auth-alert.success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: #065f46; }
.auth-alert.danger  { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.2);  color: #991b1b; }
.auth-alert.info    { background: rgba(255,90,0,0.08);   border: 1px solid rgba(255,90,0,0.2);   color: #7a3000; }

/* bottom */
.auth-bottom { text-align: center; margin-top: 28px; font-size: 0.85rem; color: #374066; }
.auth-bottom a { color: #ff5a00; font-weight: 700; text-decoration: none; }
.auth-bottom a:hover { text-decoration: underline; }

/* Mobile logo */
.mobile-brand-logo{
    display:none;
    text-align:center;
    margin-bottom:24px;
}
.mobile-brand-logo .brand-logo-text{
    font-size: 1.4rem;
}

/* ── OTP verification boxes ── */
.otp-boxes {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}
.otp-input {
    width: 100%;
    max-width: 76px;
    height: 76px;
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a0e24;
    border: 2px solid #94a3b8;
    border-radius: 12px;
    background: #fff;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.otp-input:focus {
    border-color: #ff5a00;
    box-shadow: 0 0 0 4px rgba(255,90,0,0.12);
}

/* responsive */
@media (max-width: 1440px) {
    .auth-outer { padding: 8vh 10vw; }
    .auth-left { padding: 40px; }
}
@media (max-width: 1200px) {
    .auth-outer { padding: 6vh 6vw; }
    .auth-left { padding: 36px; }
    .auth-right { padding: 48px 56px; }
}
@media (max-width: 1024px) {
    .auth-outer { padding: 4vh 4vw; }
    .auth-left { padding: 32px; }
    .auth-right { padding: 40px 40px; }
    .fi-text { font-size: 0.82rem; }
}
@media (max-width: 900px) {
    .auth-outer { padding: 0; background: #fcfcfd; }
    .auth-wrapper { border-radius: 0; box-shadow: none; }
    .auth-left { display: none; }
    .auth-right { padding: 40px 24px; }
    .mobile-brand-logo { display: block; }
}
@media (max-width: 640px) {
    .auth-right { padding: 32px 20px; }
    .card-heading h2 { font-size: 1.75rem; }
    .btn-auth { height: 48px; font-size: 0.9rem; }
}
@media (max-width: 480px) {
    .auth-right { padding: 28px 16px; }
    .card-heading h2 { font-size: 1.65rem; }
    .auth-card { max-width: 100%; }
    .otp-boxes { gap: 10px; }
    .otp-input { height: 60px; font-size: 1.4rem; }
}
