@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

@font-face {
    font-family: "exo2";
    src: url("/../fonts/Exo2-VariableFont_wght.ttf");
}

:root {
    --bg-dark: #0b0e14;
    --bg-card: rgba(18, 25, 38, 0.85);
    --gold-light: #fbbf24;
    --gold-dark: #d97706;
    --border-card: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(245, 158, 11, 0.35);
    --text-main: #f3f4f6;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.font-heading {
    font-family: 'Outfit', sans-serif;
}

.font-gk {
    font-family: 'Outfit', 'exo2', sans-serif;
}

/* Background Wrapper */
.signup-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 15%, rgba(245, 158, 11, 0.12) 0%, rgba(11, 14, 20, 0.98) 70%), #0b0e14 !important;
    position: relative;
    padding: 40px 15px;
}

.signup-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 85% 85%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Auth Glassmorphism Card */
.auth-card, .bg-front-light {
    background: var(--bg-card) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 158, 11, 0.06);
    color: var(--text-main) !important;
    padding: 40px 36px;
    position: relative;
    z-index: 2;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover, .bg-front-light:hover {
    border-color: var(--border-gold) !important;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.1);
}

/* Form Styling */
.form-row {
    text-align: left;
    margin-bottom: 1.25rem;
}

.form-row label, .auth-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    display: block;
    margin-left: 0 !important;
    text-align: left;
}

.auth-input-group, .form-row .input-group {
    background: rgba(11, 14, 20, 0.65) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    overflow: hidden;
    transition: all 0.25s ease;
}

.auth-input-group:focus-within, .form-row .input-group:focus-within {
    border-color: var(--gold-light) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

.auth-input-group .input-group-text, .form-row .input-group-text {
    background: transparent !important;
    border: none !important;
    color: var(--gold-light) !important;
    padding-left: 16px;
    padding-right: 12px;
    min-width: 3rem;
}

.auth-input-group .form-control, .form-row input.form-control {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    padding: 12px 14px !important;
    box-shadow: none !important;
}

.auth-input-group .form-control::placeholder, .form-row input.form-control::placeholder {
    color: #64748b;
}

.signin-show-pass, .signup-show-pass {
    cursor: pointer;
    color: var(--text-muted) !important;
    transition: color 0.2s ease;
}

.signin-show-pass:hover, .signup-show-pass:hover {
    color: var(--gold-light) !important;
}

/* Primary Auth Button */
.btn-gold-auth, .btn-front-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%) !important;
    color: #0b0e14 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 13px 24px !important;
    font-size: 1.05rem !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35) !important;
    transition: all 0.25s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-gold-auth:hover, .btn-front-warning:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #b45309 100%) !important;
    color: #0b0e14 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45) !important;
}

.btn-gold-auth:disabled, .btn-front-warning:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
}

/* Outline Glass Button */
.btn-outline-glass-auth {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f3f4f6;
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-glass-auth:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* Links */
.auth-link, .front-link {
    color: var(--gold-light) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-link:hover, .front-link:hover {
    color: #fef08a !important;
    text-decoration: underline;
}

.auth-back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.auth-back-link:hover {
    color: #fff;
    transform: translateX(-3px);
}

/* Alerts */
.alert, .alert-light {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
    border-radius: 14px !important;
    padding: 12px 16px !important;
    font-size: 0.92rem;
    backdrop-filter: blur(10px);
}

/* High-Contrast Text Overrides */
.text-muted, 
.auth-card p, 
.auth-card .text-muted,
.signup-wrap p,
.signup-wrap .text-muted {
    color: #cbd5e1 !important;
}

.auth-desc {
    color: #cbd5e1 !important;
    font-size: 0.95rem;
    line-height: 1.6;
}

.auth-icon-badge {
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24 !important;
    font-size: 2rem;
}

.shift-1em-left {
    margin-left: 0;
}

/* Main compatibility helpers */
.main-btn { min-width: 8em; border-radius: 25px; border: 2px solid #e0c485; }
.main-btn:hover { opacity: 0.5; }
.front-modal-title {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Outfit', 'exo2', sans-serif;
}

@keyframes shake-anim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
.shake-anim {
    animation: shake-anim 0.35s ease-in-out !important;
}
.auth-input-group.has-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}
.auth-input-group.has-success {
    border-color: #10b981 !important;
}

/* Opacity and Contrast Helpers for Bootstrap elements */
.bg-warning.bg-opacity-10 { background-color: rgba(245, 158, 11, 0.1) !important; }
.bg-warning.bg-opacity-20 { background-color: rgba(245, 158, 11, 0.2) !important; }
.bg-warning.bg-opacity-25 { background-color: rgba(245, 158, 11, 0.25) !important; }
.border-warning.border-opacity-25 { border-color: rgba(245, 158, 11, 0.25) !important; }
.border-warning.border-opacity-40 { border-color: rgba(245, 158, 11, 0.4) !important; }

.bg-success.bg-opacity-25 { background-color: rgba(16, 185, 129, 0.2) !important; }
.border-success.border-opacity-40 { border-color: rgba(16, 185, 129, 0.4) !important; }

.bg-secondary.bg-opacity-25 { background-color: rgba(148, 163, 184, 0.15) !important; }
.border-secondary.border-opacity-25 { border-color: rgba(148, 163, 184, 0.25) !important; }
