/* ===========================================
   AUTH PAGES - Common Styles
   Login, Register, Reset Password
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.auth-page {
    overflow-x: hidden;
}

.auth-container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* =====================
   Partie gauche - Image
   ===================== */
.auth-image {
    width: 768px;
    max-width: 40vw;
    flex-shrink: 0;
    background-color: #0a0a0a;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to left, #0e0f10 0%, rgba(14,15,16,0.8) 8%, rgba(14,15,16,0) 25%),
        linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 35%, rgba(0,0,0,0.1) 100%);
}

.auth-image-content {
    position: relative;
    z-index: 1;
    color: #fff;
}

/* =====================
   Tips Box - Style JV
   ===================== */
.auth-tips {
    margin-top: 32px;
    width: 100%;
}

.auth-tips-box {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-tips-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #53b6ff;
    margin-bottom: 10px;
}

.auth-tips-content {
    position: relative;
    min-height: 65px;
}

.auth-tip-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 12px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.4s ease;
    pointer-events: none;
}

.auth-tip-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.auth-tip-item.exit {
    opacity: 0;
    transform: translateY(-6px);
}

/* Featured tip (VPN) */
.auth-tip-item.auth-tip-featured {
    color: rgba(255, 255, 255, 0.75);
}

.auth-tip-item a {
    color: #53b6ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-tip-item a:hover {
    color: #CCECFF;
    text-decoration: underline;
}

/* Navigation dots */
.auth-tips-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.auth-tips-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tips-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

.auth-tips-dot.active {
    background: #53b6ff;
}

.auth-image-content h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.auth-image-content p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ======================
   Partie droite - Contenu
   ====================== */
.auth-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 40px;
    background: linear-gradient(160deg, #222423 0%, #0e0f10 100%);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.auth-form-wrapper.wide {
    max-width: 450px;
}

.logo-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.logo-brand img {
    width: 145px;
}

/* =====================
   Titre
   ===================== */
.auth-form-wrapper h3 {
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    background: none;
    margin-bottom: 22px;
    padding: 0;
    border: none;
    text-align: center;
}

/* =====================
   Inputs
   ===================== */
.auth-form-wrapper input[type="text"],
.auth-form-wrapper input[type="email"],
.auth-form-wrapper input[type="password"] {
    outline: none;
    background: #ffffff;
    width: 100%;
    border: 2px solid transparent;
    margin: 0 0 14px;
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 8px;
    color: #1a1a1a;
    transition: all 0.2s ease;
}

.auth-form-wrapper input::placeholder {
    color: #999;
}

.auth-form-wrapper input:focus {
    border-color: #43e97b;
}

/* =====================
   Boutons
   ===================== */
.auth-form-wrapper button[type="submit"] {
    text-transform: uppercase;
    outline: none;
    background: linear-gradient(135deg, #53b6ff 0%, #F3b6ff 100%);
    width: 100%;
    border: none;
    padding: 15px;
    border-radius: 8px;
    color: #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-top: 6px;
}

.auth-form-wrapper button[type="submit"]:hover {
    filter: brightness(1.08);
}

.auth-form-wrapper a.auth-btn-secondary {
    text-transform: uppercase;
    text-align: center;
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 12px;
    font-weight: 600;
    display: block;
    padding: 15px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px;
    letter-spacing: 1.2px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.auth-form-wrapper a.auth-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff !important;
}

/* =====================
   Liens
   ===================== */
.auth-form-wrapper .auth-link {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
}

.auth-form-wrapper .auth-link a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-form-wrapper .auth-link a:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* =====================
   Formulaire
   ===================== */
.auth-form {
    margin: 0;
}

/* =====================
   Messages d'erreur
   ===================== */
.error-form {
    display: none;
    color: #ff6b6b;
    font-weight: 500;
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
    padding: 13px 16px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.error-form > span {
    color: #ff6b6b;
}

.error-form > a {
    color: #ffb347;
}

.error-form.bad-credentials,
.error-form.unconfirmed-account {
    color: #ff6b6b;
}

/* =====================
   Alertes
   ===================== */
.alert {
    margin-bottom: 22px;
    border-radius: 8px;
    padding: 13px 16px;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

.alert-notice,
.alert-success {
    background: rgba(67, 233, 123, 0.08);
    border: 1px solid rgba(67, 233, 123, 0.12);
    color: rgba(255, 255, 255, 0.75);
}

.alert-info {
    background: rgba(99, 179, 237, 0.1);
    border: 1px solid rgba(99, 179, 237, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.alert-danger {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.alert .ico_info-circle {
    color: #43e97b;
}

/* =====================
   hCaptcha
   ===================== */
.auth-form-wrapper .h-captcha {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

/* =====================
   Footer
   ===================== */
.auth-footer {
    text-align: center;
    padding: 32px 0 0;
    width: 100%;
}

.auth-footer a {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    margin: 0 14px;
    font-size: 11px;
    letter-spacing: 0.3px;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: rgba(255, 255, 255, 0.55);
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-image {
        display: none;
    }
    
    .auth-content {
        padding: 40px 24px;
        min-height: 100vh;
    }
}

