:root {
    --primary: #ff4c00;
    --intermediate: #ff9500;
    --secondary: #ffb60b;
    --verydark: #1e1e1e;
    --dark: #393939;
    --grey: #565656;
    --lightgrey: #b0b0b0;
    --light: #efefef;
}

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

.auth-card {
    width: 460px;
    background-color: var(--dark);
    color: var(--light);
    padding: 5vh 5vw;
    border-radius: 30px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.2s ease;
}

.auth-card:hover {
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.7);
}

.auth-card-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.auth-title {
    font-size: 36px;
    margin: 0;
    color: var(--light);
}

.auth-subtitle {
    font-size: 16px;
    color: var(--lightgrey);
}

.auth-horizontal-bar {
    width: 100%;
    height: 5px;
    background-color: var(--intermediate);
    border-radius: 3px;
    margin-bottom: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field label {
    font-size: 15px;
    color: var(--lightgrey);
    font-weight: 500;
}

.auth-field input {
    background-color: var(--verydark);
    border: 2px solid var(--grey);
    border-radius: 12px;
    color: var(--light);
    font-size: 16px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.auth-field input::placeholder {
    color: var(--grey);
}

.auth-field input:focus {
    border-color: var(--intermediate);
}

/* Texte d'aide sous un champ */
.auth-hint {
    font-size: 12px;
    color: var(--grey);
    margin-top: -2px;
}

.auth-error {
    background-color: rgba(255, 76, 0, 0.15);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.auth-success {
    background-color: rgba(76, 255, 76, 0.1);
    border: 1px solid #4cff4c;
    color: #4cff4c;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
}

.hidden {
    display: none !important;
}

.btn-auth {
    padding: 14px;
    font-size: 17px;
    font-weight: bold;
    margin-top: 20px;
    cursor: pointer;
    margin-bottom: 16px;
    background-color: var(--primary);
    color: #fff;
    border: 2px solid #ff9500;
    border-radius: 16px;
    box-shadow: 0 5px 0 0 #c35d00;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        filter 0.15s ease;
    text-align: center;
    text-decoration: none;
    display: block;
}

.btn-auth:hover:not(:disabled) {
    filter: brightness(1.05);
}

.btn-auth:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 0 #c35d00;
}

.btn-auth:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
    font-size: 15px;
    color: var(--lightgrey);
}

/* Lien dans le footer de la card */
.auth-link {
    color: var(--intermediate);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* ── Ajouts nav.php ───────────────────────────────────────── */

/* Nom utilisateur connecté — remonté verticalement */
.nav-username {
    color: var(--intermediate);
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transform: translateY(-3px);
}

/* Bouton déconnexion — même style que les liens nav */
.nav-logout {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-logout:hover {
    color: var(--primary);
}

/* Bouton inscription — même style que les autres liens nav */
.nav-register {
    background: none;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-register:hover {
    color: var(--primary);
}

/* btn-auth sur un <a> (ex: lien "Créer un compte" dans login.php) */
a.btn-auth {
    display: inline-block;
    text-decoration: none;
}