/**
 * Auth Pages — Aurorix
 * Style : inscription sur pierre
 */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #0e0c09;
    color: #e8dcc4;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-background {
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.72)),
        url('../images/bg-battle.png') center / cover no-repeat fixed;
    z-index: -1;
}

.auth-container {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    animation: authFadeIn 0.5s ease-out;
}

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

/* Boîte — verre fumé */
.auth-box {
    background: rgba(10, 7, 4, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(205, 133, 63, 0.3);
    border-radius: 4px;
    padding: 44px 40px 36px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    position: relative;
    overflow: hidden;
}

/* Trait doré en haut */
.auth-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.55), transparent);
}

/* Logo */
.auth-logo-link {
    display: block;
    text-align: center;
    margin-bottom: 10px;
}
.auth-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 0 16px rgba(255,215,0,0.25));
    transition: filter 0.3s;
}
.auth-logo:hover {
    filter: drop-shadow(0 0 24px rgba(255,215,0,0.45));
}

/* Sous-titre */
.auth-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(232, 213, 163, 0.5);
    text-align: center;
    margin-bottom: 34px;
}

/* Alertes */
.auth-alert {
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 0.9em;
    margin-bottom: 22px;
    text-align: center;
    line-height: 1.55;
}
.auth-alert-error {
    background: rgba(180, 30, 30, 0.18);
    border: 1px solid rgba(220, 60, 60, 0.4);
    color: #f08080;
}
.auth-alert-success {
    background: rgba(30, 120, 50, 0.18);
    border: 1px solid rgba(60, 160, 80, 0.4);
    color: #90c890;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.alert-link {
    color: rgba(255,215,0,0.75);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 0.88em;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.alert-link:hover { color: #FFD700; }

/* Formulaire */
.auth-form { margin-bottom: 24px; }

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

.form-group label {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(205, 133, 63, 0.8);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(205, 133, 63, 0.28);
    border-radius: 3px;
    font-size: 0.95em;
    font-family: inherit;
    color: #e8dcc4;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder {
    color: rgba(232, 220, 196, 0.25);
    font-style: italic;
}
.form-group input:focus {
    outline: none;
    border-color: rgba(205, 133, 63, 0.65);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(205, 133, 63, 0.1);
}

/* Bouton */
.btn-submit {
    width: 100%;
    margin-top: 8px;
    padding: 13px;
    background: linear-gradient(135deg, #CD853F 0%, #8B4513 100%);
    color: #fff;
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 3px;
    font-family: 'Cinzel', serif;
    font-size: 0.85em;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.45);
    transition: filter 0.2s, transform 0.2s;
}
.btn-submit:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}
.btn-submit:active { transform: translateY(0); }

/* Liens */
.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    border-top: 1px solid rgba(205, 133, 63, 0.15);
    padding-top: 20px;
}
.auth-links a {
    font-size: 0.82em;
    color: rgba(232, 220, 196, 0.45);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.auth-links a:hover { color: rgba(255, 215, 0, 0.75); }

@media (max-width: 480px) {
    .auth-box { padding: 36px 22px 28px; }
}
