/* ============================================
   SOUND CONNECT — Pages Connexion/Inscription
   ============================================ */

.sc-auth-page,
.sc-auth-page #page,
.sc-auth-page .ast-separate-container,
.sc-auth-page #content,
.sc-auth-page .site-content {
    background: #0A0A0A !important;
}

.sc-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    font-family: 'Outfit', sans-serif;
}

/* Bouton retour */
.sc-auth__back {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}
.sc-auth__back:hover {
    color: #F5F5F5;
}

/* Container principal */
.sc-auth__container {
    width: 100%;
    max-width: 440px;
}

/* Header */
.sc-auth__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sc-auth__logo {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.sc-auth__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid #2C2C2C;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #AAA;
}

/* Onglets Connexion / Inscription */
.sc-auth__tabs {
    display: flex;
    border-bottom: 1px solid #2C2C2C;
    margin-bottom: 2rem;
}

.sc-auth__tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.sc-auth__tab:hover {
    color: #AAA;
}

.sc-auth__tab.active {
    color: #F5F5F5;
}

.sc-auth__tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #F5F5F5;
}

/* Messages d'erreur/succès */
.sc-auth__message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.3px;
}

.sc-auth__message--error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #E74C3C;
}

.sc-auth__message--success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ECC71;
}

/* Formulaires */
.sc-auth__form {
    display: none;
}

.sc-auth__form.active {
    display: block;
    animation: sc-authFadeIn 0.4s ease;
}

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

/* Groupes de champs */
.sc-form-group {
    margin-bottom: 1.25rem;
}

.sc-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 0.5rem;
}

.sc-form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    color: #F5F5F5;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.sc-form-group input::placeholder {
    color: #555;
}

.sc-form-group input:focus {
    border-color: #888;
    background: #222;
}

/* Ligne de 2 champs côte à côte */
.sc-form-row {
    display: flex;
    gap: 1rem;
}

.sc-form-row .sc-form-group {
    flex: 1;
}

/* Bouton principal */
.sc-btn--primary {
    width: 100%;
    padding: 0.85rem;
    background: #F5F5F5;
    color: #0A0A0A;
    border: none;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.sc-btn--primary:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
}

.sc-btn--primary:active {
    transform: translateY(0);
}

/* Mot de passe oublié */
.sc-auth__forgot {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.3px;
}

.sc-auth__forgot:hover {
    color: #F5F5F5;
}

/* Lien vers l'autre espace */
.sc-auth__switch {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #1A1A1A;
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.3px;
}

.sc-auth__switch a {
    color: #F5F5F5;
    font-weight: 500;
}

.sc-auth__switch a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .sc-auth {
        padding: 1.5rem;
    }
    .sc-auth__back {
        top: 1rem;
        left: 1rem;
    }
    .sc-form-row {
        flex-direction: column;
        gap: 0;
    }
    .sc-auth__container {
        max-width: 100%;
    }
}
