/* Styles pour les pages d'authentification (Connexion et Inscription) */

.auth-content {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 2rem;
    position: relative;
    margin-left: 320px;
    margin-right: 320px;
    padding-top: calc(80px + 2rem);
    flex: 1;
}

.auth-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-frame {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 4rem 3rem;
    padding-top: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
}

.auth-progress-bar {
    position: absolute;
    top: 0.5rem;
    left: 3rem;
    right: 3rem;
    width: calc(100% - 6rem);
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.auth-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B5CF6 0%, #A855F7 100%);
    border-radius: 6px;
    transition: width 0.5s ease-in-out;
    width: 0%;
}

.auth-title {
    font-family: 'Brevia', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
}

.auth-error-message {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'URW Form', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
}

.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.auth-input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.auth-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: 'URW Form', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    outline: none;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-input:focus {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.auth-submit-btn {
    width: 100%;
    max-width: 280px;
    padding: 1.125rem 2rem;
    border-radius: 90px;
    font-family: 'URW Form', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 0.5rem;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #fff;
}

/* Mode Orange pour auth-submit-btn */
body.mode-orange .auth-submit-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
}

body.mode-orange .auth-submit-btn:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #E6821A 100%) !important;
}

.auth-submit-btn:active {
    transform: translateY(0);
}

/* Page de bienvenue après connexion */
.welcome-content {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    margin-left: 320px;
    margin-right: 320px;
    padding-top: calc(80px + 2rem);
}

.welcome-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-frame {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 4rem 3rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
    overflow: hidden;
}

.welcome-message {
    font-family: 'Brevia', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
}

.welcome-platform {
    font-family: 'Brevia', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin: 0;
}

.welcome-username {
    font-family: 'Brevia', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin: 0;
}

.welcome-instruction {
    font-family: 'URW Form', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

.welcome-btn {
    width: 100%;
    max-width: 280px;
    padding: 1.125rem 2rem;
    border-radius: 90px;
    font-family: 'URW Form', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #fff;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.welcome-btn:hover {
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

/* Mode Orange pour welcome-btn */
body.mode-orange .welcome-btn {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
}

body.mode-orange .welcome-btn:hover {
    background: linear-gradient(135deg, #E55A2B 0%, #E6821A 100%) !important;
}

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

/* Responsive adjustments - Tablet */
@media (max-width: 991.98px) {
    .auth-content,
    .welcome-content {
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
        padding-top: calc(80px + 1.5rem);
        padding-bottom: calc(80px + 1.5rem);
    }
}

/* Responsive adjustments - Mobile */
@media (max-width: 768px) {
    .auth-content,
    .welcome-content {
        padding: 1rem;
        padding-top: calc(80px + 1rem);
        padding-bottom: calc(80px + 1rem);
    }
    
    .auth-frame,
    .welcome-frame {
        padding: 3rem 2rem;
        gap: 2rem;
    }
    
    .auth-title,
    .welcome-message,
    .welcome-platform,
    .welcome-username {
        font-size: 1.25rem;
    }
    
    .auth-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .auth-submit-btn,
    .welcome-btn {
        max-width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-frame,
    .welcome-frame {
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
        border-radius: 15px;
    }
    
    .auth-title,
    .welcome-message,
    .welcome-platform,
    .welcome-username {
        font-size: 1.1rem;
    }
    
    .welcome-instruction {
        font-size: 0.9rem;
    }
    
    .auth-form {
        gap: 1.25rem;
    }
    
    .auth-input {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .auth-submit-btn,
    .welcome-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .auth-error-message {
        font-size: 0.85rem;
        padding: 0.875rem;
    }
}

/* Styles pour les pages d'inscription */

.auth-subtitle {
    font-family: 'URW Form', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.auth-instruction {
    font-family: 'URW Form', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.auth-back-btn {
    position: absolute;
    top: 3rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 90px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.auth-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    text-decoration: none;
}

.auth-back-btn svg {
    width: 24px;
    height: 24px;
}

.auth-skip-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 90px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'URW Form', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
    cursor: pointer;
}

.auth-skip-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Choix Fan/Artiste */
.inscription-choices {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.inscription-choice-btn {
    width: 100%;
    padding: 2rem;
    background: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.inscription-choice-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    text-decoration: none;
}

.choice-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.choice-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.choice-title {
    font-family: 'Brevia', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.choice-description {
    font-family: 'URW Form', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Grille de genres musicaux */
.genres-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.genre-btn {
    position: relative;
    cursor: pointer;
}

.genre-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.genre-label {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 90px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'URW Form', sans-serif;
    font-size: 0.875rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.genre-checkbox:checked + .genre-label {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: 500;
}

.genre-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.genres-error {
    width: 100%;
    padding: 0.875rem;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'URW Form', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1rem;
}

/* Actions de profil */
.profile-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-action-btn {
    width: 100%;
    padding: 1.5rem;
    background: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 90px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-file-input {
    display: none;
}

.profile-action-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.profile-action-text {
    font-family: 'URW Form', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
}

/* Aperçu des fichiers (photos de profil / bannières) dans les champs */
.file-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    font-family: 'URW Form', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.file-preview img {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.profile-action-btn.file-selected {
    background: rgba(60, 60, 60, 0.9);
}

.profile-action-btn.file-selected .profile-action-text {
    display: none;
}

.auth-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: rgba(60, 60, 60, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: 'URW Form', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s ease;
    outline: none;
    resize: vertical;
}

.auth-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.auth-textarea:focus {
    background: rgba(60, 60, 60, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Icône de bienvenue */
.welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
}

.welcome-icon svg {
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3));
}

/* Responsive pour les pages d'inscription */
@media (max-width: 768px) {
    .genres-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .genre-label {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .inscription-choice-btn {
        padding: 1.5rem;
    }
    
    .choice-icon {
        font-size: 2rem;
    }
    
    .choice-title {
        font-size: 1.125rem;
    }
    
    .choice-description {
        font-size: 0.85rem;
    }
    
    .profile-action-btn {
        padding: 1.25rem;
    }
    
    .welcome-icon svg {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .genres-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .auth-back-btn {
        top: 2.5rem;
        left: 0.75rem;
        width: 36px;
        height: 36px;
    }
    
    .auth-back-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .welcome-icon svg {
        width: 80px;
        height: 80px;
    }
}
