/* ── Shared styles for all authentication pages ─────────────────────────── */

:root {
    --sp-primary:  #f39c12;
    --sp-dark:     #1a1a2e;
    --sp-card-bg:  #16213e;
}

body {
    background: var(--sp-dark);
    font-family: 'Segoe UI', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.auth-wrapper--wide { max-width: 460px; }

/* ── Logo / header ──────────────────────────────────────────────────────── */
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo .sun-icon {
    font-size: 4rem;
    color: var(--sp-primary);
    display: block;
    animation: auth-pulse 2s ease-in-out infinite;
}

.auth-logo i {
    font-size: 3rem;
    color: var(--sp-primary);
}

@keyframes auth-pulse {
    0%, 100% { transform: scale(1);    opacity: 1;    }
    50%       { transform: scale(1.08); opacity: 0.85; }
}

.auth-logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sp-primary);
    letter-spacing: 2px;
    margin: 0.5rem 0 0.25rem;
}

.auth-logo h1.sm { font-size: 1.8rem; margin: 0.4rem 0 0; }

.auth-logo p { color: #8892b0; font-size: 0.9rem; }

/* ── Card ───────────────────────────────────────────────────────────────── */
.card {
    background: var(--sp-card-bg);
    border: 1px solid rgba(243,156,18,0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(243,156,18,0.05);
}

.card-body { padding: 2rem; }
.card-body--center { padding: 2.5rem; text-align: center; }

/* ── Form elements ──────────────────────────────────────────────────────── */
.form-label { color: #ccd6f6; font-weight: 500; }

.form-control {
    background: #0d1b2a;
    border: 1px solid rgba(255,255,255,0.15);
    color: #e6e6e6;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}
.form-control:focus {
    background: #0d1b2a;
    border-color: var(--sp-primary);
    color: #e6e6e6;
    box-shadow: 0 0 0 0.2rem rgba(243,156,18,0.25);
}
.form-control::placeholder { color: #445; }
.form-control.is-invalid   { border-color: #e74c3c; }
.invalid-feedback          { color: #e74c3c; }

.input-group-text {
    background: #0d1b2a;
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--sp-primary);
}

.form-check-input:checked { background-color: var(--sp-primary); border-color: var(--sp-primary); }
.form-check-label          { color: #8892b0; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-auth {
    background: linear-gradient(135deg, var(--sp-primary) 0%, #e67e22 100%);
    border: none;
    color: #000;
    font-weight: 700;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    width: 100%;
}
.btn-auth:hover {
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(243,156,18,0.4);
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert-danger {
    background: rgba(231,76,60,0.15);
    border: 1px solid rgba(231,76,60,0.5);
    color: #e74c3c;
    border-radius: 8px;
}

.alert-success {
    background: rgba(46,204,113,0.1);
    border: 1px solid rgba(46,204,113,0.4);
    color: #2ecc71;
    border-radius: 8px;
}

.alert-warning {
    background: rgba(243,156,18,0.1);
    border: 1px solid rgba(243,156,18,0.4);
    color: #f39c12;
    border-radius: 8px;
}

/* ── Misc ───────────────────────────────────────────────────────────────── */
h1 { color: #ccd6f6; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
h2 { color: #ccd6f6; font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
p  { color: #8892b0; font-size: 0.9rem; margin-bottom: 1.25rem; }
a  { color: var(--sp-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.hint { color: #556; font-size: 0.8rem; margin-top: 0.3rem; }

.icon-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(243,156,18,0.12);
    border: 2px solid rgba(243,156,18,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--sp-primary);
    margin-bottom: 1.5rem;
}

/* ── Locale switcher (login/register only) ──────────────────────────────── */
.locale-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.locale-switcher a {
    color: #8892b0;
    text-decoration: none;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    transition: color 0.2s;
}
.locale-switcher a:hover  { color: var(--sp-primary); }
.locale-switcher a.active { color: var(--sp-primary); font-weight: 700; }
.locale-switcher span     { color: #556; }
