/* =======================================================
 * PREMIUM PANELIS V4 - ELITE AUTHENTICATION THEME
 * ======================================================= */

:root {
    --auth-bg: #0b0f1a;
    --auth-primary: #818cf8;
    --auth-primary-rgb: 129, 140, 248;
    --auth-text: #ffffff;
    --auth-text-muted: rgba(255, 255, 255, 0.7);
    --auth-glass: rgba(15, 23, 42, 0.6);
    --auth-border: rgba(255, 255, 255, 0.12);
}

body.auth-page {
    background-color: var(--auth-bg);
    color: var(--auth-text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --- FOND DYNAMIQUE "AURA" --- */
.auth-bg-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; background: #020617; overflow: hidden;
}
.stars { display: none; } /* On retire les étoiles pour la V4 */
.nebula {
    position: absolute; width: 150%; height: 150%; top: -25%; left: -25%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(var(--auth-primary-rgb), 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(30, 64, 175, 0.1) 0%, transparent 60%);
    filter: blur(100px); animation: aura-float 30s ease-in-out infinite alternate;
}
@keyframes aura-float {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(5%, 5%) scale(1.1); }
}

/*/* --- COMPOSITE CARD ELITE --- */
.auth-composite-card {
    display: flex; width: 100%; max-width: 1250px; height: 620px;
    background: var(--auth-glass); backdrop-filter: blur(40px);
    border: 1px solid var(--auth-border); border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6); overflow: hidden;
    animation: authEntrance 1s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative; margin: 20px;
}
@keyframes authEntrance {
    from { opacity: 0; transform: scale(0.9) translateY(40px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- BRANDING SECTION V4 --- */
.branding-section {
    flex: 1; padding: 40px 60px; position: relative;
    display: flex; flex-direction: column; justify-content: center;
    background: radial-gradient(circle at 0% 0%, rgba(var(--auth-primary-rgb), 0.1), transparent 70%);
}
.branding-logo {
    display: flex; align-items: center; gap: 15px; margin-bottom: 25px;
    font-weight: 900; letter-spacing: 4px; font-size: 1rem; color: #fff;
}
.logo-icon-v4 {
    width: 35px; height: 35px; background: var(--auth-primary);
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 1rem; color: #000;
    box-shadow: 0 0 20px rgba(var(--auth-primary-rgb), 0.3);
}
.branding-title { font-size: 2.8rem; line-height: 0.95; margin-bottom: 15px; color: #fff; }
.tracking-tight { letter-spacing: -3px; }
.text-primary { color: var(--auth-primary) !important; }

.feature-list-v4 { display: flex; flex-direction: column; gap: 10px; }
.feature-item-v4 { display: flex; align-items: center; gap: 10px; font-size: 0.65rem; font-weight: 800; letter-spacing: 1px; color: rgba(255,255,255,0.8); }

/* --- FORM SECTION V4 --- */
.form-section {
    flex: 1.5; padding: 35px 60px; display: flex; flex-direction: column;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
}
.auth-header-mini { margin-bottom: 20px; }
.auth-tabs {
    display: flex; gap: 8px; margin-bottom: 20px;
    background: rgba(0,0,0,0.2); padding: 5px; border-radius: 15px;
}
.auth-tab {
    flex: 1; text-align: center; padding: 10px; border-radius: 12px;
    cursor: pointer; font-size: 0.75rem; font-weight: 800; transition: 0.3s;
    color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px;
}
.auth-tab.active { background: var(--auth-primary); color: #000; box-shadow: 0 8px 15px rgba(var(--auth-primary-rgb), 0.3); }

/* Inputs V4 */
.auth-form-group { margin-bottom: 12px; }
.auth-label { 
    display: block; margin-bottom: 6px; font-size: 0.6rem; font-weight: 900; 
    letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.auth-input-wrapper { position: relative; }
.auth-input {
    width: 100%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 10px 15px; color: #fff; transition: 0.3s;
    font-size: 0.85rem; font-weight: 500;
}
.auth-input:focus {
    outline: none; background: rgba(255,255,255,0.05);
    border-color: var(--auth-primary); box-shadow: 0 0 0 4px rgba(var(--auth-primary-rgb), 0.1);
}
.auth-input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); opacity: 0.2; font-size: 0.8rem; }
.auth-input-toggle { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); opacity: 0.4; font-size: 0.9rem; cursor: pointer; transition: 0.2s; z-index: 5; }
.auth-input-toggle:hover { opacity: 1; color: var(--auth-primary); }
.auth-input-with-icon { padding-left: 40px; }
.auth-input-with-toggle { padding-right: 45px; }

/* Buttons V4 */
.auth-btn {
    width: 100%; padding: 14px; border-radius: 15px; border: none;
    background: linear-gradient(135deg, var(--auth-primary), #6366f1);
    color: #fff; font-weight: 900; font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 1.5px; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 10px 20px rgba(var(--auth-primary-rgb), 0.2);
    margin-top: 5px;
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(var(--auth-primary-rgb), 0.4); filter: brightness(1.1); }

.auth-divider { 
    display: flex; align-items: center; margin: 15px 0; 
    font-size: 0.6rem; font-weight: 900; letter-spacing: 2px; 
    text-transform: uppercase; opacity: 0.1;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #fff; }
.auth-divider::before { margin-right: 12px; }
.auth-divider::after { margin-left: 12px; }

/* Social Grid V4 */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
    padding: 8px; border-radius: 12px; color: #fff; text-decoration: none;
    font-weight: 700; font-size: 0.7rem; transition: 0.3s;
}
.social-btn:hover { background: rgba(255,255,255,0.06); transform: translateY(-2px); }
.social-btn.steam i { color: #fff; }
.social-btn.discord i { color: #5865f2; }

/* Utilities */
.tracking-widest { letter-spacing: 5px; }
.xx-small { font-size: 0.6rem; }

.auth-form-container { display: none; }
.auth-form-container.active { display: block; animation: formFadeIn 0.4s ease-out; }
@keyframes formFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 992px) {
    .auth-composite-card { flex-direction: column; height: auto; margin: 20px; border-radius: 32px; max-width: 500px; }
    .branding-section { padding: 30px; order: 2; }
    .branding-title { font-size: 2rem; }
    .form-section { padding: 30px; order: 1; flex: none; }
}


/* Utilities */
.tracking-widest { letter-spacing: 5px; }
.xx-small { font-size: 0.6rem; }

.auth-form-container { display: none; }
.auth-form-container.active { display: block; animation: formFadeIn 0.4s ease-out; }
@keyframes formFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Responsive */
@media (max-width: 992px) {
    .auth-composite-card { flex-direction: column; height: auto; margin: 20px; border-radius: 32px; }
    .branding-section { padding: 30px; order: 2; }
    .branding-title { font-size: 2rem; }
    .form-section { padding: 30px; order: 1; }
}

/* --- AUTH SOCIAL FOOTER --- */
.auth-social-fixed {
    margin-top: auto;
    padding-top: 20px;
    animation: fadeIn 0.5s ease-out 0.5s both;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(var(--auth-primary-rgb), 0.3);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.social-btn.steam i { color: #fff; }
.social-btn.discord i { color: #5865f2; }

@media (max-width: 992px) {
    .auth-social-fixed {
        padding-top: 15px;
        margin-bottom: 10px;
    }
}

/* --- SOCIAL ONLY HUB V4 --- */
.social-only-hub {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    animation: fadeIn 0.8s ease-out;
}

.social-hub-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: rgba(var(--auth-primary-rgb), 0.05);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(var(--auth-primary-rgb), 0.1);
    position: relative;
}

.social-hub-icon i {
    filter: drop-shadow(0 0 10px rgba(var(--auth-primary-rgb), 0.5));
}

.social-grid-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 350px;
    margin: 0 auto;
}

.social-btn.large {
    padding: 16px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.social-btn.large:hover {
    background: rgba(var(--auth-primary-rgb), 0.1);
    border-color: var(--auth-primary);
}

.social-btn.steam:hover { background: rgba(0, 0, 0, 0.4); border-color: #66c0f4; }
.social-btn.discord:hover { background: rgba(88, 101, 242, 0.1); border-color: #5865f2; }
