/* ============================================
   AUTH PAGES — LOGIN & SIGNUP
   auth.css
============================================ */

@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes authFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes authSlideRight {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ---------- RESET BODY FOR AUTH ---------- */
body.auth-body {
    background: #070e1c;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- AUTH WRAPPER ---------- */
.auth-page {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ===== LEFT PANEL — BRAND SIDE ===== */
.auth-left {
    position: relative;
    background: #070e1c;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 56px;
    overflow: hidden;
}

/* Orange glow bottom-left */
.auth-left::before {
    content: '';
    position: absolute;
    bottom: -100px; left: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(226,79,6,0.22) 0%, transparent 65%);
    pointer-events: none;
}

/* Blue glow top-right */
.auth-left::after {
    content: '';
    position: absolute;
    top: -80px; right: -60px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(41,121,196,0.15) 0%, transparent 65%);
    pointer-events: none;
}

/* Subtle vertical accent bar */
.al-accent-bar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, transparent, #e24f06 30%, #e24f06 70%, transparent);
    z-index: 1;
}

/* Logo area */
.al-logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    animation: authFadeIn 0.6s ease forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

.al-logo-img {
    height: 60px;
    width: auto;
}

.al-logo-text { display: flex; flex-direction: column; line-height: 1.2; }

.al-logo-main {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.al-logo-sri { color: #2979c4; }
.al-logo-ta  { color: #e24f06; }
.al-logo-rest { color: #ffffff; }

.al-logo-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* Main brand copy */
.al-body {
    position: relative;
    z-index: 2;
    animation: authSlideRight 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.al-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #e24f06;
    margin-bottom: 20px;
}
.al-eyebrow-line { width: 28px; height: 1px; background: #e24f06; }

.al-body h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.al-body h2 span { color: #e24f06; }

.al-body p {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.45);
    line-height: 1.85;
    max-width: 360px;
    border-left: 2px solid rgba(226,79,6,0.35);
    padding-left: 14px;
    margin-bottom: 36px;
}

/* Perks list */
.al-perks {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.al-perk {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Barlow', sans-serif;
    font-size: 13.5px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
}

.al-perk-dot {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: rgba(226,79,6,0.15);
    border: 1px solid rgba(226,79,6,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.al-perk-dot i { font-size: 0.85rem !important; color: #e24f06 !important; }

/* Bottom trust badges */
.al-trust {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    animation: authFadeIn 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

.al-trust-badge {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.al-trust-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #e24f06;
    line-height: 1;
}

.al-trust-label {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
}

/* ===== RIGHT PANEL — FORM SIDE ===== */
.auth-right {
    background: #f7f4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 56px;
    position: relative;
}

.auth-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, #e24f06 30%, #2979c4 70%, transparent);
}

.auth-form-wrap {
    width: 100%;
    max-width: 420px;
    animation: authFadeUp 0.7s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

/* Form header */
.afw-head {
    margin-bottom: 32px;
}

.afw-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e24f06;
    margin-bottom: 10px;
}
.afw-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: #e24f06; }

.afw-head h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    text-transform: uppercase;
    color: #00227e;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.afw-head h1 span { color: #e24f06; }

.afw-head p {
    font-family: 'Barlow', sans-serif;
    font-size: 13.5px;
    font-weight: 300;
    color: #999;
    line-height: 1.7;
}

/* Divider */
.afw-divider {
    height: 1px;
    background: linear-gradient(90deg, #e24f06, #2979c4);
    margin-bottom: 28px;
    border-radius: 1px;
    width: 48px;
}

/* Fields */
.af-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.af-field label {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #aaa;
}

.af-input-wrap {
    position: relative;
}

.af-input-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem !important;
    color: #ccc !important;
    transition: color 0.25s ease;
    pointer-events: none;
}

.af-input-wrap input {
    width: 100%;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #222;
    background: #ffffff;
    border: 1px solid #e0dbd5;
    border-radius: 8px;
    padding: 13px 16px 13px 42px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.af-input-wrap input:focus {
    border-color: #e24f06;
    box-shadow: 0 0 0 3px rgba(226,79,6,0.1);
}

.af-input-wrap input:focus + i,
.af-input-wrap:focus-within i {
    color: #e24f06 !important;
}

/* Toggle password visibility */
.af-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem !important;
    color: #ccc !important;
    cursor: pointer;
    pointer-events: all !important;
    transition: color 0.2s ease;
}
.af-eye:hover { color: #e24f06 !important; }

/* Row layout for two fields side by side */
.af-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Forgot password */
.af-forgot {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 16px;
}

.af-forgot a {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #e24f06;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.af-forgot a:hover { opacity: 0.7; }

/* Submit button */
.af-submit {
    display: block;
    width: 100%;
    background: #e24f06;
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    padding: 15px 32px;
    border-radius: 8px;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    margin-top: 8px;
}

.af-submit:hover {
    background: #c43e00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226,79,6,0.3);
}

.af-submit:active { transform: translateY(0); }

/* OR divider */
.af-or {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.af-or-line {
    flex: 1;
    height: 1px;
    background: #e5e1dc;
}

.af-or span {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ccc;
}

/* Switch link */
.af-switch {
    text-align: center;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #aaa;
    margin-top: 20px;
}

.af-switch a {
    font-weight: 700;
    color: #e24f06;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.af-switch a:hover { opacity: 0.7; }

/* Terms note */
.af-terms {
    font-family: 'Barlow', sans-serif;
    font-size: 11.5px;
    font-weight: 300;
    color: #bbb;
    text-align: center;
    line-height: 1.7;
    margin-top: 16px;
}

.af-terms a {
    color: #e24f06;
    text-decoration: none;
    font-weight: 500;
}

/* Password strength meter */
.af-strength {
    margin-top: 6px;
    display: flex;
    gap: 4px;
}

.af-strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: #e5e1dc;
    transition: background 0.3s ease;
}

.af-strength-bar.weak   { background: #e24f06; }
.af-strength-bar.medium { background: #f0a500; }
.af-strength-bar.strong { background: #2dbd6e; }

.af-strength-label {
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #bbb;
    margin-top: 4px;
}

/* Error / success messages */
.af-error {
    display: none;
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #d93025;
    margin-top: 5px;
    padding-left: 4px;
}

.af-field.has-error input { border-color: #d93025; }
.af-field.has-error .af-error { display: block; }

/* Checkbox */
.af-check-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.af-check-wrap input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: #e24f06;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.af-check-wrap label {
    font-family: 'Barlow', sans-serif;
    font-size: 12.5px;
    font-weight: 400;
    color: #888;
    line-height: 1.6;
    cursor: pointer;
}

.af-check-wrap label a {
    color: #e24f06;
    font-weight: 600;
    text-decoration: none;
}

/* ===== TOP NAV BAR ON AUTH PAGES ===== */
.auth-nav {
    background: #070e1c;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.auth-nav-inner {
    max-width: 100%;
    padding: 0 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.an-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.an-logo-img { height: 44px; width: auto; }

.an-logo-text { display: flex; flex-direction: column; line-height: 1.2; }

.an-logo-main {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.an-logo-sri { color: #2979c4; }
.an-logo-ta  { color: #e24f06; }
.an-logo-rest { color: #ffffff; }

.an-logo-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}

.an-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.25s ease;
}
.an-back:hover { color: #e24f06; }
.an-back i { font-size: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-left  { display: none; }
    .auth-right { padding: 40px 28px; }
    .auth-right::before { display: none; }
}

@media (max-width: 480px) {
    .auth-right { padding: 32px 20px; }
    .af-row     { grid-template-columns: 1fr; }
}
