/* ===========================================================
   D9 INFOTECH - AUTH PAGES MODERN STYLES
   Matches the D9 Infotech landing page theme
   =========================================================== */

/* Disable FontAwesome auto-injection via CSS */
.auth-page .fa,
.auth-page .fas,
.auth-page .far,
.auth-page .fal,
.auth-page .fab,
.auth-page [class^="icon-"],
.auth-page [class*=" icon-"],
.auth-page [class^="fa-"],
.auth-page [class*=" fa-"] {
    display: none !important;
}

/* Kill FontAwesome auto-icons that inject via ::before */
.auth-page *::before,
.auth-page *::after {
    font-family: inherit !important;
    content: normal !important;
}

/* Specifically hide ::before on field-group which FontAwesome targets */
.field-group::before,
.field-group::after,
.field-group .input-wrap::before,
.field-group .input-wrap::after,
.field-group label::before,
.field-group label::after {
    content: '' !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
    border: 0 !important;
}

* { box-sizing: border-box; }

:root {
    --purple: #5B21B6;
    --purple-light: #AB3FFF;
    --blue: #1268D8;
    --gold: #CF9617;
    --gold-light: #F5C451;
    --dark: #0F172A;
    --muted: #6B7280;
    --bg: #0a0a14;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.10);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.12);
    --text: #1f2937;
    --text-light: #9CA3AF;
    --success: #10B981;
    --danger: #EF4444;
}

body {
    font-family: 'Inter', 'Poppins', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: #fff;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== Background Effects ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 33, 182, 0.35), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(18, 104, 216, 0.30), transparent 60%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(207, 150, 23, 0.20), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.auth-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

#particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Floating decorative blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}
.blob.b1 { width: 380px; height: 380px; background: var(--purple); top: -100px; left: -100px; }
.blob.b2 { width: 320px; height: 320px; background: var(--blue); bottom: -80px; right: -80px; }
.blob.b3 { width: 260px; height: 260px; background: var(--gold); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.18; }

/* ===== Card ===== */
.auth-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
}

.auth-container.wide { max-width: 720px; }

.auth-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow:
        0 30px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--blue), var(--gold), var(--purple));
    background-size: 200% 100%;
    animation: gradientMove 6s linear infinite;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gradientMove {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* ===== Brand ===== */
.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}
.auth-brand a { display: inline-block; }
.auth-brand img {
    height: 48px;
    width: auto;
    filter: drop-shadow(0 4px 12px rgba(91, 33, 182, 0.4));
    transition: transform 0.3s;
}
.auth-brand img:hover { transform: scale(1.05); }

/* ===== Title ===== */
.auth-title {
    text-align: center;
    margin-bottom: 28px;
}
.auth-title h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #fff 0%, #AB3FFF 60%, #F5C451 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-title p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
}

/* ===== Form ===== */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

.field-group { position: relative; }

.field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #E5E7EB;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.field-group label .req { color: var(--gold-light); margin-left: 2px; }
/* Hide FontAwesome icons that auto-inject via ::before on form fields */
.field-group::before,
.field-group::after,
.field-group > *::before,
.field-group > *::after,
.input-wrap::before,
.input-wrap::after,
.field-group label::before,
.field-group label::after {
    content: '' !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    background: none !important;
    background-image: none !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrap > .input-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text-light);
    pointer-events: none;
    z-index: 2;
    transition: color 0.3s;
    flex-shrink: 0;
}

.field-group input,
.field-group select {
    width: 100%;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    color: #fff;
    padding: 14px 16px 14px 48px;
    border-radius: 12px;
    font-size: 14.5px;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
}

.field-group select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

/* ===== Custom Select Dropdown ===== */
.custom-select-wrap {
    position: relative;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    color: #fff;
    padding: 14px 44px 14px 48px;
    border-radius: 12px;
    font-size: 14.5px;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s ease;
    min-height: 50px;
    user-select: none;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger {
    border-color: var(--purple-light);
    background: rgba(91, 33, 182, 0.08);
    box-shadow: 0 0 0 4px rgba(171, 63, 255, 0.12);
}

.custom-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-text.placeholder {
    color: #6B7280;
}

.custom-select-arrow {
    position: absolute;
    right: 16px;
    width: 16px;
    height: 16px;
    color: var(--text-light);
    transition: transform 0.3s;
}

.custom-select.open .custom-select-arrow {
    transform: rotate(180deg);
    color: var(--purple-light);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.8);
    z-index: 100;
    overflow: hidden;
    display: none;
    max-height: 320px;
    flex-direction: column;
}

.custom-select.open .custom-select-options {
    display: flex;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-select-search {
    padding: 10px;
    border-bottom: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
}
.custom-select-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--input-border);
    color: #fff;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}
.custom-select-search input:focus {
    border-color: var(--purple-light);
    background: rgba(91, 33, 182, 0.08);
}
.custom-select-search input::placeholder { color: #6B7280; }

.custom-select-list {
    overflow-y: auto;
    max-height: 240px;
    padding: 4px;
}

.custom-select-list::-webkit-scrollbar {
    width: 6px;
}
.custom-select-list::-webkit-scrollbar-track {
    background: transparent;
}
.custom-select-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.custom-select-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.custom-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: #E5E7EB;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    margin: 2px 0;
}

.custom-select-option:hover {
    background: rgba(91, 33, 182, 0.15);
    color: #fff;
    transform: translateX(2px);
}

.custom-select-option.selected {
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.4), rgba(18, 104, 216, 0.4));
    color: #fff;
    font-weight: 600;
}

.custom-select-option.selected::before {
    content: '✓';
    color: var(--gold-light);
    font-weight: 700;
    margin-right: 8px;
    font-size: 13px;
}

.custom-select-option.hidden {
    display: none;
}

.custom-select-option .country-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-option .country-code {
    color: var(--gold-light);
    font-size: 12.5px;
    font-weight: 500;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Style native select dropdown options for dark theme */
.field-group select option {
    background-color: #0F172A !important;
    color: #fff !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border: none !important;
}

.field-group select option:checked,
.field-group select option:hover,
.field-group select option:focus {
    background: linear-gradient(135deg, rgba(91, 33, 182, 0.4), rgba(18, 104, 216, 0.4)) !important;
    background-color: rgba(91, 33, 182, 0.5) !important;
    color: #fff !important;
}

.field-group input::placeholder { color: #6B7280; }

/* Disable browser's default validation popup */
form[novalidate] input:invalid { box-shadow: none; }
.field-group input:focus,
.field-group select:focus {
    border-color: var(--purple-light);
    background: rgba(91, 33, 182, 0.08);
    box-shadow: 0 0 0 4px rgba(171, 63, 255, 0.12);
}
.field-group input:focus ~ .input-icon,
.field-group input:focus + .input-icon { color: var(--purple-light); }
.field-group .input-wrap:focus-within .input-icon { color: var(--purple-light); }

.field-group.password .input-wrap input { padding-right: 48px; }
.toggle-pass {
    position: absolute;
    right: 14px;
    background: transparent;
    border: 0;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    display: flex;
    border-radius: 6px;
    transition: all 0.2s;
}
.toggle-pass:hover { color: var(--purple-light); background: rgba(255, 255, 255, 0.06); }
.toggle-pass svg { width: 18px; height: 18px; }

/* Validation states */
.field-group.error input,
.field-group.error select {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.06);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
    animation: shake 0.4s;
}
.field-group.success input { border-color: var(--success); background: rgba(16, 185, 129, 0.05); }
.field-group .error-msg,
.field-group .help-msg {
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 16px;
}
.field-group .error-msg { color: #FCA5A5; }
.field-group .help-msg { color: var(--text-light); }
.field-group.success .help-msg { color: #6EE7B7; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* Password strength meter */
.pwd-strength {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}
.pwd-strength span {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    transition: all 0.3s;
}
.pwd-strength.s1 .s1,
.pwd-strength.s2 .s1,
.pwd-strength.s2 .s2,
.pwd-strength.s3 .s1,
.pwd-strength.s3 .s2,
.pwd-strength.s3 .s3,
.pwd-strength.s4 .s1,
.pwd-strength.s4 .s2,
.pwd-strength.s4 .s3,
.pwd-strength.s4 .s4 { background: var(--danger); }
.pwd-strength.s1 .s2,
.pwd-strength.s1 .s3,
.pwd-strength.s1 .s4,
.pwd-strength.s2 .s3,
.pwd-strength.s2 .s4,
.pwd-strength.s3 .s4 { background: rgba(255, 255, 255, 0.08); }
.pwd-strength.s3 .s1,
.pwd-strength.s3 .s2,
.pwd-strength.s3 .s3 { background: var(--gold); }
.pwd-strength.s4 .s1,
.pwd-strength.s4 .s2,
.pwd-strength.s4 .s3,
.pwd-strength.s4 .s4 { background: var(--success); }

.pwd-strength-text {
    font-size: 11.5px;
    margin-top: 4px;
    text-align: right;
}
.pwd-strength-text.s1 { color: #FCA5A5; }
.pwd-strength-text.s2 { color: #FCA5A5; }
.pwd-strength-text.s3 { color: var(--gold-light); }
.pwd-strength-text.s4 { color: #6EE7B7; }

/* ===== Checkbox ===== */
.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
}
.check-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--input-border);
    border-radius: 5px;
    background: var(--input-bg);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}
.check-row input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border-color: var(--purple-light);
}
.check-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px; left: 5px;
    width: 5px; height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.check-row a { color: var(--purple-light); text-decoration: none; }
.check-row a:hover { color: var(--gold-light); text-decoration: underline; }

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

/* ===== Button ===== */
.btn-auth {
    width: 100%;
    padding: 15px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    margin-top: 4px;
    box-shadow: 0 8px 24px -8px rgba(91, 33, 182, 0.5);
}
.btn-auth::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}
.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -8px rgba(91, 33, 182, 0.6);
}
.btn-auth:hover::before { left: 100%; }
.btn-auth:active { transform: translateY(0); }

.btn-auth.loading {
    pointer-events: none;
    color: transparent;
}
.btn-auth.loading::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 20px; height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-auth.gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--dark);
    box-shadow: 0 8px 24px -8px rgba(207, 150, 23, 0.5);
}
.btn-auth.gold:hover { box-shadow: 0 14px 32px -8px rgba(207, 150, 23, 0.6); }

/* ===== Auth Footer (alternate link) ===== */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--card-border);
    color: var(--text-light);
    font-size: 13.5px;
}
.auth-footer a {
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
    transition: color 0.2s;
}
.auth-footer a:hover { color: #fff; text-decoration: underline; }

/* ===== Error Alert ===== */
.alert-box {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.4s;
}
.alert-box.success {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6EE7B7;
}
.alert-box svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Disable browser default validation popup */
form[data-validate-form] input:invalid {
    box-shadow: none;
}
.field-group .error-msg svg,
.field-group .help-msg svg {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* ===== OTP Input (2FA) ===== */
.otp-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 12px 0 4px;
}
.otp-grid input {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    padding: 14px 0;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    color: #fff;
    border-radius: 10px;
    outline: none;
    font-family: 'Poppins', monospace;
    transition: all 0.2s;
}
.otp-grid input:focus {
    border-color: var(--purple-light);
    background: rgba(91, 33, 182, 0.08);
    box-shadow: 0 0 0 4px rgba(171, 63, 255, 0.12);
}
.otp-grid input.filled { border-color: var(--success); background: rgba(16, 185, 129, 0.06); }
.otp-grid input.error { border-color: var(--danger); background: rgba(239, 68, 68, 0.06); animation: shake 0.4s; }

@media (max-width: 480px) {
    .otp-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; }
    .otp-grid input { font-size: 18px; padding: 12px 0; }
}

/* ===== Phone field ===== */
.phone-group { display: flex; gap: 8px; }
.phone-group select { width: 110px; flex-shrink: 0; padding-left: 14px; }
.phone-group input { flex: 1; }

/* ===== Info Banner ===== */
.info-banner {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(91, 33, 182, 0.10);
    border: 1px solid rgba(91, 33, 182, 0.25);
    color: #C4B5FD;
    font-size: 13px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.info-banner svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ===== Floating Feature Side ===== */
.auth-side {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 50%;
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    z-index: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 30% 20%, rgba(245, 196, 81, 0.3), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(171, 63, 255, 0.4), transparent 60%);
}
.auth-side-content {
    position: relative;
    z-index: 1;
    color: #fff;
    max-width: 500px;
    padding: 40px;
}
.auth-side-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px;
}
.auth-side-content p { font-size: 16px; opacity: 0.9; line-height: 1.6; margin: 0 0 32px; }
.auth-features { list-style: none; padding: 0; margin: 0; }
.auth-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 15px;
}
.auth-features svg {
    width: 22px; height: 22px;
    color: var(--gold-light);
    flex-shrink: 0;
}
@media (max-width: 960px) { .auth-side { display: none; } }

/* ===== Layout with side ===== */
.auth-layout { display: flex; min-height: 100vh; position: relative; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; z-index: 1; }
@media (max-width: 960px) { .auth-main { flex: 0 0 100%; } }

/* ===== 2FA Card Note ===== */
.two-fa-note {
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 18px;
}
.two-fa-note strong { color: var(--gold-light); font-weight: 600; }

/* ===== ReCaptcha override ===== */
.g-recaptcha { margin: 8px 0; transform: scale(0.95); transform-origin: 0 0; }

/* ===== Animations ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.auth-title, .auth-brand, .auth-form, .auth-footer { animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.auth-brand { animation-delay: 0.1s; }
.auth-title { animation-delay: 0.2s; }
.auth-form { animation-delay: 0.3s; }
.auth-footer { animation-delay: 0.4s; }

/* ===== Mobile responsive ===== */
@media (max-width: 540px) {
    .auth-card { padding: 28px 22px; border-radius: 20px; }
    .auth-title h2 { font-size: 22px; }
    .auth-page { padding: 20px 14px; }
}
