/* ============================================
   AUTH / LOGIN — J.B Tech Solutions — Thème Sombre
   ============================================ */

body {
    color: #F1F5F9;
    min-height: 100vh;
    /* Background handled by style.css body.login */
}

/* ===============================
   AUTH CONTAINER
================================ */
.auth-container {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
}

.auth-wrapper {
    display: flex;
    gap: 30px;
    max-width: 900px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===============================
   AUTH CARD
================================ */
.auth-card {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    padding: 40px;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.login-card {
    flex: 1;
    min-width: min(380px, 100%);
    max-width: 450px;
    width: 100%;
}

.register-promo {
    flex: 1;
    min-width: 300px;
    max-width: 360px;
    text-align: center;
    background: rgba(37, 99, 235, 0.22);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 12px;
    padding: 40px 30px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 8px;
}

.auth-header p {
    color: #94A3B8;
    font-size: 15px;
}

/* ===============================
   FORM
================================ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #CBD5E1;
    font-weight: 500;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
    font-size: 16px;
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid rgba(148, 163, 184, 0.20);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.25s ease;
    background: rgba(15, 23, 42, 0.80);
    color: #F1F5F9;
}

.input-wrapper input::placeholder {
    color: #475569;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #3b82f6;
    background: rgba(30, 41, 59, 0.90);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ===============================
   FORM OPTIONS
================================ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94A3B8;
    cursor: pointer;
}

.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.forgot {
    font-size: 14px;
    color: #93c5fd;
    text-decoration: none;
    font-weight: 500;
}

.forgot:hover {
    color: #bfdbfe;
    text-decoration: underline;
}

/* ===============================
   BUTTONS
================================ */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.40);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    margin-top: 10px;
}

.auth-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

.auth-btn.secondary {
    background: rgba(255, 255, 255, 0.10);
    color: #93c5fd;
    border: 2px solid rgba(147, 197, 253, 0.40);
}

.auth-btn.secondary:hover {
    background: rgba(37, 99, 235, 0.20);
    border-color: #93c5fd;
    color: #bfdbfe;
}

/* ===============================
   REGISTER PROMO (SIDE PANEL)
================================ */
.promo-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.promo-icon i {
    font-size: 30px;
    color: #93c5fd;
}

.register-promo h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #F8FAFC;
}

.register-promo p {
    font-size: 15px;
    color: #94A3B8;
    margin-bottom: 25px;
    line-height: 1.7;
}

/* ===============================
   LOGOUT / DECONNEXION PAGE
================================ */
.login-container {
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
}

.login-box {
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    padding: 50px 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.logout-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.35);
}

.logout-icon i {
    font-size: 40px;
    color: white;
}

.login-box h1 {
    font-size: 26px;
    font-weight: 700;
    color: #F8FAFC;
    margin-bottom: 15px;
}

.logout-message {
    color: #94A3B8;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.logout-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-login,
.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.40);
}

.btn-login:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

.btn-register {
    background: rgba(255, 255, 255, 0.06);
    color: #93c5fd;
    border: 2px solid rgba(147, 197, 253, 0.35);
}

.btn-register:hover {
    background: rgba(37, 99, 235, 0.18);
    border-color: #93c5fd;
    transform: translateY(-2px);
}

/* Alert messages */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .auth-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .login-card,
    .register-promo {
        width: 100%;
        max-width: 480px;
        min-width: unset;
    }
}

@media (max-width: 600px) {
    .auth-container {
        padding: 20px 12px;
    }

    .auth-wrapper {
        gap: 16px;
    }

    .login-card,
    .register-promo {
        padding: 24px 18px;
        min-width: unset;
        width: 100%;
        box-sizing: border-box;
    }

    .auth-header h2 {
        font-size: 22px;
    }

    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .login-box {
        padding: 28px 18px;
    }

    .input-wrapper input {
        font-size: 16px; /* évite le zoom auto iOS */
    }
}
