@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=DM+Serif+Display:ital@0;1&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&family=Inter:wght@300;400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

/* ========================================
   ROYAL IGNITE - Luxury Dark & Amber Theme
   ======================================== */

:root {
    --bg-main: #070706;
    --bg-card: rgba(18, 17, 16, 0.88);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-glow: rgba(212, 136, 51, 0.15);
    --gold-primary: #d48833;
    --gold-light: #f5ab50;
    --gold-dark: #b86e20;
    --gold-gradient: linear-gradient(180deg, #d88931 0%, #b86e20 100%);
    --gold-hover: linear-gradient(180deg, #e5963c 0%, #c97c27 100%);
    --text-title: #f5f0ea;
    --text-sub: #8e877c;
    --text-label: #8a8377;
    --text-light: #F0F0F0;
    --text-subtle: #A0A0A0;
    --input-bg: #141312;
    --input-border: rgba(255, 255, 255, 0.09);
    --input-focus-border: #d48833;
    --input-text: #f0ece6;
    --input-placeholder: #58534b;
    --button-hover: #1f1f1f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    caret-color: transparent;
}

body {
    font-family: 'Inter', 'Instrument Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

input, textarea, [contenteditable="true"] {
    caret-color: var(--gold-primary) !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text !important;
}

/* ========================================
   Header Partial
   ======================================== */

.royal-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(7, 7, 7, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 24px;
    letter-spacing: 2px;
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s ease;
}

.brand-logo:hover {
    color: var(--gold-primary);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    font-family: 'Inter', 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #d6cfc7;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: var(--gold-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    color: #d6cfc7;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.header-icon:hover {
    color: var(--gold-primary);
    opacity: 1;
}

.auth-nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 8px;
}

.btn-header-login {
    font-family: 'Inter', 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #f0ece6;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.btn-header-login:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    background: rgba(246, 189, 100, 0.05);
}

.btn-header-signup {
    font-family: 'Inter', 'Instrument Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #0b0a09;
    background: var(--gold-primary);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-header-signup:hover {
    background: #e29c4b;
    transform: translateY(-1px);
}

.btn-header-logout {
    font-family: 'Inter', 'Instrument Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(212, 196, 178, 0.7);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(80, 69, 55, 0.3);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-header-logout:hover {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.4);
    background: rgba(255, 107, 107, 0.08);
}

/* ========================================
   Auth Content Layout & Background
   ======================================== */

.auth-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
    background:
        radial-gradient(circle at 50% 30%, rgba(14, 13, 12, 0.72) 0%, rgba(6, 6, 5, 0.94) 85%),
        url('/images/auth-bg.jpg') center center / cover no-repeat fixed;
}

/* Distinct luxury background for Login Page with branded Royal Ignite collection */
.login-page .auth-wrapper {
    padding: 30px 20px;
    background: 
        radial-gradient(circle at 50% 35%, rgba(12, 11, 10, 0.52) 0%, rgba(6, 6, 5, 0.90) 88%),
        url('/images/login-bg.jpg') center center / cover no-repeat fixed;
}

/* Atmospheric subtle vignette behind the card */
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 40%, rgba(212, 136, 51, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* ========================================
   Luxury Glassmorphism Auth Card
   ======================================== */

.gold-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: 100%;
    max-width: 480px;
    padding: 44px 40px;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow:
        0 30px 70px -15px rgba(0, 0, 0, 0.85),
        0 0 0 1px var(--card-border-glow);
    color: #f0ece6;
    position: relative;
    z-index: 10;
}

/* Brand Emblem Badge at Card Top */
.card-brand-header {
    text-align: center;
    margin-bottom: 20px;
}

.brand-emblem-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46, 35, 23, 0.95) 0%, rgba(18, 15, 12, 0.95) 100%);
    border: 1px solid rgba(212, 136, 51, 0.35);
    box-shadow: 0 0 18px rgba(212, 136, 51, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-emblem-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(212, 136, 51, 0.35);
}

.emblem-flame-icon {
    display: block;
}

.card-brand-name {
    font-family: 'Cinzel', 'Bodoni Moda', serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 5.5px;
    color: #ede8e1;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.card-brand-divider {
    width: 72px;
    height: 1px;
    background: radial-gradient(circle, rgba(212, 136, 51, 0.85) 0%, rgba(212, 136, 51, 0.1) 80%, transparent 100%);
    margin: 0 auto;
}

/* Auth Headings */
.auth-title {
    font-family: 'Cormorant Garamond', 'Cinzel', 'Bodoni Moda', serif;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 500;
    text-align: center;
    letter-spacing: 0.3px;
    color: var(--text-title);
    margin-bottom: 8px;
}

.auth-subtitle {
    font-family: 'Inter', 'Instrument Sans', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: var(--text-sub);
    max-width: 320px;
    margin: 0 auto 26px;
    font-weight: 400;
}

/* ========================================
   Form Components
   ======================================== */

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-label);
    margin-bottom: 7px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--input-text);
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    background: #171615;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 1px var(--input-focus-border), 0 0 16px rgba(212, 136, 51, 0.25);
}

.form-input::placeholder {
    color: var(--input-placeholder);
    font-size: 13.5px;
}

/* Password eye toggle wrap */
.password-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrap .form-input {
    padding-right: 46px;
}

.toggle-password-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: #8c857b;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    line-height: 0;
    z-index: 5;
    transition: color 0.2s ease;
}

.toggle-password-btn:hover {
    color: var(--gold-primary);
}

/* ========================================
   Form Utilities Row (Remember Me & Forgot Password)
   ======================================== */

.form-utilities-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0 20px;
    font-size: 12.5px;
}

.custom-checkbox-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-wrap input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    background: #141312;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.custom-checkbox-wrap:hover .custom-checkbox {
    border-color: var(--gold-primary);
}

.custom-checkbox-wrap input[type="checkbox"]:checked+.custom-checkbox {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
}

.custom-checkbox-wrap input[type="checkbox"]:checked+.custom-checkbox::after {
    content: '';
    width: 4px;
    height: 8px;
    border: solid #141312;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.checkbox-label {
    color: #8c857b;
    font-size: 12.5px;
    transition: color 0.2s ease;
}

.custom-checkbox-wrap:hover .checkbox-label {
    color: #cfc8bd;
}

/* Forgot Password Link */
.forgot-link {
    display: inline-block;
    font-size: 12.5px;
    color: #8c857b;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--gold-primary);
    text-decoration: underline;
}

/* ========================================
   Referral Code Accordion
   ======================================== */

.referral-accordion {
    margin: 8px 0 16px;
}

.referral-toggle-btn {
    background: none;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: #8c857b;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.referral-toggle-btn:hover {
    color: var(--gold-primary);
}

.referral-chevron {
    transition: transform 0.25s ease;
}

.referral-toggle-btn.active .referral-chevron {
    transform: rotate(180deg);
    stroke: var(--gold-primary);
}

.referral-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
}

.referral-content.is-open {
    max-height: 70px;
    opacity: 1;
    margin-top: 10px;
}

.referral-input-group {
    margin-bottom: 0;
}

/* ========================================
   Buttons & Actions
   ======================================== */

.primary-btn {
    width: 100%;
    height: 50px;
    background: var(--gold-gradient);
    color: #1a1105;
    border: none;
    border-radius: 8px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 4px 18px rgba(184, 110, 32, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.primary-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(216, 137, 49, 0.45);
    color: #120b02;
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(184, 110, 32, 0.3);
}

/* Divider */
.divider-container {
    display: flex;
    align-items: center;
    margin: 22px 0;
    gap: 12px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.divider-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #6e675e;
    font-weight: 600;
}

/* Google OAuth Button */
.google-btn {
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    color: #d6cfc5;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 136, 51, 0.35);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.google-btn:active {
    transform: scale(0.99);
}

/* Switch & Terms */
.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 13.5px;
    color: #8c857b;
}

.auth-switch a {
    color: var(--gold-primary);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.terms-notice {
    text-align: center;
    margin-top: 14px;
    font-size: 11.5px;
    color: #6e675e;
    line-height: 1.5;
}

.terms-notice a {
    color: #a69f95;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.terms-notice a:hover {
    color: var(--gold-light);
}

/* Compact Login Card Fit */
.login-card {
    padding: 32px 34px;
}

.login-card .auth-subtitle {
    margin: 0 auto 18px;
}

.login-card .divider-container {
    margin: 16px 0;
}

.login-card .auth-switch {
    margin-top: 15px;
}

/* Resend OTP Button & Timer Container */
.resend-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--gold-primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease, opacity 0.2s ease, text-shadow 0.2s ease;
    display: inline-block;
}

.resend-btn:hover:not(:disabled) {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212, 136, 51, 0.4);
}

.resend-btn:disabled {
    color: #78716c !important;
    cursor: not-allowed !important;
    text-decoration: none;
    opacity: 0.7;
    text-shadow: none;
}

/* Re-enter Email Link / Button */
.reenter-email-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #e5dfd5;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 7px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reenter-email-btn:hover {
    color: var(--gold-light);
    border-color: rgba(212, 136, 51, 0.45);
    background: rgba(212, 136, 51, 0.12);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.otp-timer-container {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(212, 136, 51, 0.08);
    border: 1px solid rgba(212, 136, 51, 0.22);
    padding: 7px 18px;
    border-radius: 24px;
    font-size: 12.5px;
    font-weight: 500;
    color: #a8a196;
    letter-spacing: 0.5px;
}

.otp-timer-container svg {
    color: var(--gold-primary);
    flex-shrink: 0;
}

.otp-timer-container strong {
    color: var(--gold-light);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.terms-notice {
    margin-top: 20px;
    text-align: center;
    font-size: 11.5px;
    color: #6e675e;
    line-height: 1.5;
}

.terms-notice a {
    color: #8c857b;
    text-decoration: underline;
}

.terms-notice a:hover {
    color: var(--gold-primary);
}

/* ========================================
   Error & Status Badges (Luxury Theme)
   ======================================== */

.error-badge {
    background: rgba(220, 38, 38, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 11px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    text-align: center;
    font-weight: 400;
}

.success-badge {
    position: relative;
    background: linear-gradient(135deg, rgba(212, 136, 51, 0.12) 0%, rgba(24, 21, 18, 0.90) 50%, rgba(14, 13, 12, 0.96) 100%);
    border: 1px solid rgba(212, 136, 51, 0.35);
    border-left: 3px solid var(--gold-primary, #d48833);
    color: #f5eedb;
    padding: 13px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.25px;
    line-height: 1.45;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 136, 51, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: luxuryBadgeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-badge::before {
    content: '';
    display: inline-block;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    background-color: var(--gold-primary, #d48833);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.success-badge:has(svg)::before {
    display: none;
}

@keyframes luxuryBadgeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* SweetAlert2 Theme Overrides */
.swal2-popup.swal2-toast {
    background: #141312 !important;
    border: 1px solid rgba(212, 136, 51, 0.35) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 136, 51, 0.15) !important;
    border-radius: 10px !important;
}

.swal2-popup.swal2-toast .swal2-title {
    color: #f0ece6 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
}

.swal2-toast .swal2-icon.swal2-icon-show.swal2-success {
    border-color: #d48833 !important;
    color: #d48833 !important;
}

.swal2-toast .swal2-icon.swal2-icon-show.swal2-success [class^='swal2-success-line'] {
    background-color: #d48833 !important;
}

.swal2-toast .swal2-icon.swal2-icon-show.swal2-success .swal2-success-ring {
    border: .25em solid rgba(212, 136, 51, 0.3) !important;
}

.swal2-popup.swal2-toast .swal2-timer-progress-bar {
    background: linear-gradient(90deg, #b86e20, #f5ab50) !important;
}

.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px #ef4444, 0 0 12px rgba(239, 68, 68, 0.2) !important;
}

.js-error-message {
    color: #f87171 !important;
    font-size: 11.5px !important;
    margin-top: 5px !important;
    font-weight: 400 !important;
}

/* ========================================
   Footer Partial
   ======================================== */

.royal-footer {
    background: rgba(8, 7, 6, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 48px 48px 32px;
    margin-top: auto;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand {
    font-family: 'Cinzel', 'Bodoni Moda', serif;
    font-size: 18px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ede8e1;
    margin-bottom: 14px;
}

.footer-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-subtle);
    font-weight: 300;
}

.footer-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #F0F0F0;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-subtle);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 400;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FFFFFF;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(160, 160, 160, 0.3);
    border-radius: 4px;
    padding: 0 12px;
    color: #FFFFFF;
    font-size: 13px;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.newsletter-btn {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0 8px;
    transition: color 0.2s;
}

.newsletter-btn:hover {
    color: #FFFFFF;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-subtle);
    font-weight: 300;
}

.footer-legal a {
    color: var(--text-subtle);
    text-decoration: none;
    margin-left: 16px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #FFFFFF;
}

/* ========================================
   Responsive Styling
   ======================================== */

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .royal-header {
        padding: 14px 20px;
    }

    .auth-wrapper {
        padding: 40px 16px;
    }

    .gold-card {
        padding: 34px 22px;
        border-radius: 14px;
    }

    .auth-title {
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 8px;
    }
}

/* ==========================================================================
   ROYAL IGNITE — LUXURY AUTH ANIMATIONS (LOGIN / SIGNUP / RECOVERY)
   1. Living Flame Emblem & Breathing Halo
   2. Slow-Drifting Golden Embers Canvas Layer
   3. Cursor-Tracking Gold Glass Sheen & Staggered Card Reveal
   4. Tactile Button Shimmer, Loading Spinner & Error Micro-Shake
   5. Soft Input Focus Glow & Label Brighten
   ========================================================================== */

@keyframes authCardEnter {
    from {
        opacity: 0;
        transform: translateY(26px) scale(0.975);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes authItemFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes authDividerExpand {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes authFlameFlicker {
    0%, 100% {
        transform: scale(1) translateY(0) rotate(0deg);
        filter: drop-shadow(0 0 6px rgba(251, 194, 117, 0.55));
    }
    25% {
        transform: scale(1.04, 1.07) translateY(-0.6px) rotate(-1.2deg);
        filter: drop-shadow(0 0 10px rgba(251, 194, 117, 0.78));
    }
    55% {
        transform: scale(0.97, 1.02) translateY(0.3px) rotate(1deg);
        filter: drop-shadow(0 0 5px rgba(212, 136, 51, 0.45));
    }
    80% {
        transform: scale(1.03, 1.06) translateY(-0.4px) rotate(-0.6deg);
        filter: drop-shadow(0 0 9px rgba(251, 194, 117, 0.7));
    }
}

@keyframes authHaloBreath {
    0%, 100% {
        box-shadow: 0 0 18px rgba(212, 136, 51, 0.22), 0 0 0 0 rgba(212, 136, 51, 0.24);
    }
    50% {
        box-shadow: 0 0 28px rgba(251, 194, 117, 0.42), 0 0 0 6px rgba(212, 136, 51, 0);
    }
}

@keyframes authErrorShake {
    0%, 100% { transform: translateX(0); }
    18% { transform: translateX(-7px); }
    36% { transform: translateX(6px); }
    54% { transform: translateX(-4px); }
    72% { transform: translateX(3px); }
    88% { transform: translateX(-1.5px); }
}

@keyframes authBtnSpin {
    to { transform: rotate(360deg); }
}

/* 2. Background Golden Embers Layer */
.auth-wrapper {
    overflow: hidden;
}

.auth-embers-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 3. Frosted Card Entrance & Cursor-Tracking Gold Glass Sheen */
.gold-card {
    --mx: 50%;
    --my: 18%;
    overflow: hidden;
    animation: authCardEnter 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gold-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        340px circle at var(--mx) var(--my),
        rgba(251, 194, 117, 0.11) 0%,
        rgba(212, 136, 51, 0.04) 38%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
}

.gold-card:hover::before {
    opacity: 1;
}

.gold-card > * {
    position: relative;
    z-index: 1;
}

.gold-card.has-error-shake {
    animation: authErrorShake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Staggered Inner Form Choreography */
.gold-card .card-brand-header {
    animation: authItemFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.10s both;
}

.gold-card .card-brand-divider {
    transform-origin: center;
    animation: authDividerExpand 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.20s both;
}

.gold-card .auth-title {
    animation: authItemFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.gold-card .auth-subtitle {
    animation: authItemFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.gold-card form {
    animation: authItemFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.30s both;
}

.gold-card .auth-switch,
.gold-card .divider-container,
.gold-card .google-btn,
.gold-card .terms-notice {
    animation: authItemFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
}

/* 1. Living Flame Emblem & Breathing Halo */
.brand-emblem-badge {
    animation: authHaloBreath 3.6s ease-in-out infinite;
}

.emblem-flame-icon {
    transform-origin: 50% 85%;
    animation: authFlameFlicker 2.9s ease-in-out infinite;
}

/* 4. Error Badge Micro-Shake */
.error-badge {
    animation: authErrorShake 0.48s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* 5. Soft Input Focus Glow & Label Brighten */
.form-group label {
    transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-group:focus-within label {
    color: #fbc275;
    transform: translateX(2px);
}

.form-input {
    transition:
        border-color 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.3s ease;
}

.form-input:focus {
    border-color: rgba(251, 194, 117, 0.68);
    box-shadow:
        0 0 0 3px rgba(212, 136, 51, 0.14),
        0 0 18px rgba(212, 136, 51, 0.16);
}

/* 4. Tactile Button Shimmer & Sign-In Loading State */
.primary-btn,
.google-btn {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        background-color 0.3s ease,
        border-color 0.3s ease,
        opacity 0.25s ease;
}

.primary-btn::after,
.google-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -135%;
    width: 78%;
    height: 100%;
    background: linear-gradient(
        118deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 44%,
        rgba(255, 255, 255, 0.42) 50%,
        rgba(255, 255, 255, 0.18) 56%,
        transparent 100%
    );
    transform: skewX(-22deg);
    transition: left 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.primary-btn:hover::after,
.google-btn:hover::after {
    left: 145%;
}

.primary-btn:hover,
.google-btn:hover {
    transform: translateY(-2px);
}

.primary-btn:active,
.google-btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.12s;
}

/* Smooth Loading Spinner Inside Sign-In Button on Valid Submit */
.primary-btn.is-loading {
    pointer-events: none;
    color: transparent !important;
    opacity: 0.92;
}

.primary-btn.is-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    border: 2px solid rgba(15, 13, 10, 0.28);
    border-top-color: #0b0a09;
    animation: authBtnSpin 0.65s linear infinite;
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    .auth-embers-canvas {
        display: none !important;
    }

    .gold-card,
    .gold-card > *,
    .brand-emblem-badge,
    .emblem-flame-icon,
    .error-badge {
        animation: none !important;
    }

    .primary-btn::after,
    .google-btn::after {
        display: none !important;
    }
}