/* ========================================
   PAGE AUTHENTIFICATION
======================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.auth-card {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-card h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #c084fc, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 1rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* Auth Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    margin-left: 0.25rem;
}

.input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

textarea.input {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Avatar Selector */
.avatar-selector {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.avatar-option {
    font-size: 2rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    border: 3px solid transparent;
}

.avatar-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.15);
}

.avatar-option.selected {
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* Color Selector */
.color-selector {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.color-option {
    height: 3rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.color-option.selected {
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Error Message */
.error-message {
    display: none;
    padding: 0.875rem 1rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    border-radius: var(--border-radius);
    color: #fca5a5;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    animation: shake 0.5s;
}

/* Avatar Selector */
.avatar-selector {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
}

.avatar-option {
    font-size: 2rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    border: 3px solid transparent;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.avatar-option.selected {
    border-color: var(--primary);
    background: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* Scrollbar personnalisée pour avatars */
.avatar-selector::-webkit-scrollbar {
    width: 8px;
}

.avatar-selector::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.avatar-selector::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px;
}

.avatar-selector::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
}

/* Color Selector */
.color-selector {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
}

.color-option {
    height: 3rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 3px solid transparent;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.color-option.selected {
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Scrollbar personnalisée pour couleurs */
.color-selector::-webkit-scrollbar {
    width: 8px;
}

.color-selector::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.color-selector::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    border-radius: 4px;
}

.color-selector::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary), var(--primary));
}