/* ===== PAGE AUTHENTIFICATION US BOOKAK ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 40px 0;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 168, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 128, 255, 0.03) 0%, transparent 50%);
    animation: authGlow 15s ease-in-out infinite;
}

@keyframes authGlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-5%, 5%) rotate(5deg); }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

/* ===== LOGO US BOOKAK - PAGE LOGIN ===== */
.logo-container {
    text-align: center;
    margin-bottom: 36px;
}

.logo-icon.login-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: logoFloat 3s ease-in-out infinite, logoGlow 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.login-logo:hover .login-logo-img {
    transform: scale(1.1);
}

/* Anneaux désactivés */
.logo-ring {
    display: none;
}

.football-icon {
    width: 100%;
    height: 100%;
}

.football-icon circle {
    stroke: url(#fc26Gradient);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, #00ffff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: borderFlow 3s ease infinite;
    text-shadow: none;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.logo-subtitle {
    font-family: var(--font-main);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== AUTH BOX US BOOKAK ===== */
.auth-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.auth-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-fc26);
}

/* ===== ONGLETS FC26 ===== */
.auth-tabs {
    display: flex;
    margin-bottom: 28px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 5px;
    border: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.auth-tab:hover {
    color: var(--text-secondary);
}

.auth-tab.active {
    background: var(--gradient-fc26);
    color: #0a0a0f;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.3);
}

/* ===== FORMULAIRES FC26 ===== */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ===== UPLOAD PHOTO FC26 ===== */
.photo-upload {
    display: flex;
    align-items: center;
    gap: 18px;
}

.photo-preview {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.photo-preview::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--gradient-fc26);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition);
}

.photo-preview:hover::after {
    opacity: 1;
}

.photo-preview:hover {
    border-color: var(--accent);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload input[type="file"] {
    display: none;
}

.photo-label {
    padding: 10px 18px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.photo-label:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 168, 255, 0.15);
}

/* ===== FOOTER FC26 ===== */
.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .auth-container {
        padding: 16px;
    }
    
    .auth-box {
        padding: 20px;
    }
    
    .photo-upload {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== DISCORD ID FIELD ===== */
.required-star {
    color: #ff4757;
    font-weight: bold;
}

.input-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    padding-left: 4px;
}

.input-wrapper svg.input-icon {
    width: 18px;
    height: 14px;
    fill: var(--text-muted);
    transition: fill 0.3s ease;
}

.input-wrapper:focus-within svg.input-icon {
    fill: var(--accent);
}

/* ===== DISCORD OAUTH BUTTON ===== */
.btn-discord-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #5865F2;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-discord-link:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-discord-link svg {
    fill: white;
}

.discord-linked-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: var(--radius-md);
}

.discord-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #5865F2;
}

.discord-username {
    flex: 1;
    color: var(--text-primary);
    font-weight: 600;
}

.btn-unlink-discord {
    width: 28px;
    height: 28px;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    border-radius: 50%;
    color: #ff4757;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-unlink-discord:hover {
    background: #ff4757;
    color: white;
}
