/* ============================================================
   LOGIN.CSS — VERSION PRO (PC + TABLETTE + MOBILE)
   ============================================================ */

/* ============================================================
   1. STRUCTURE GLOBALE
   ============================================================ */

/* Décalage global */
body[data-login-theme="neutre"] {
    margin-top: 48px;
}

@media (max-width: 767px) {
    body[data-login-theme="neutre"] {
        margin-top: 32px;
    }
}

/* ============================================================
   2. CARTE D’AIDE
   ============================================================ */
.login-help-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 20px;
    padding: 14px 16px;
    background: #e6f7d9;
    border: 1px solid #b7e3a3;
    color: #2f5d1e;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ============================================================
   3. CARTE LOGIN
   ============================================================ */
.login-card {
    width: 100%;
    max-width: 420px;
    margin: 20px auto;
    padding: 24px;
    border-radius: 12px;
    background: transparent;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ============================================================
   4. TITRES
   ============================================================ */
.login-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}

/* ============================================================
   5. CHAMPS / INPUTS
   ============================================================ */
.login-field {
    margin-bottom: 22px;
}

.login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.login-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

/* ============================================================
   6. MOT DE PASSE + ICÔNE
   ============================================================ */
.password-wrapper {
    position: relative;
    height: 40px;
}

.password-wrapper input {
    width: 100%;
    height: 100%;
    padding: 10px 12px;
    padding-right: 40px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

#toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    margin: 0;
}
/* ============================================================
   7. BOUTON PREMIUM — .btn-later
   ============================================================ */

.btn-later {
    /* Reset natif mobile */
    -webkit-appearance: none;
    appearance: none;
    border: none;
    background: none;
    padding: 0;
    margin: 0;

    /* Layout */
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    padding: 14px 26px;

    /* Style visuel */
    background: linear-gradient(135deg, #0d9488, #065f46);
    color: #fff;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(0,0,0,0.15),
        0 0 0 rgba(255,255,255,0.6) inset;

    transition: background 0.45s ease,
                transform 0.4s ease,
                box-shadow 0.45s ease;
}

.btn-later:hover {
    background: linear-gradient(135deg, #0b7f72, #054c38);
    transform: translateY(-3px);
    box-shadow:
        0 6px 18px rgba(0,0,0,0.22),
        0 0 12px rgba(255,255,255,0.8) inset;
}

/* ============================================================
   8. EFFETS D’ONDES — ANIMATION ACTIVE
   ============================================================ */

.btn-later::after,
.btn-later::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.btn-later::after {
    background: rgba(255,255,255,0.40);
    transition: width 1.4s ease,
                height 1.4s ease,
                opacity 1.4s ease;
}

.btn-later::before {
    background: rgba(255,255,255,0.75);
    transition: width 1s ease,
                height 1s ease,
                opacity 1s ease;
}

.btn-later:active::after {
    width: 260px;
    height: 260px;
    opacity: 1;
}

.btn-later:active::before {
    width: 140px;
    height: 140px;
    opacity: 1;
}

/* ============================================================
   9. RESPONSIVE — MOBILE (≤ 767px)
   ============================================================ */

@media (max-width: 767px) {

    .login-card {
        padding: 16px;
        border-radius: 8px;
    }

    .login-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .login-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .login-help-card {
        padding: 12px;
        font-size: 14px;
    }
}
/* ============================================================
   10. HARMONISATION AVEC LES THÈMES
   ============================================================ */

/* macOS Sonoma */
body[data-login-theme="macos"] .login-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.4);
}

body[data-login-theme="macos"] .login-help-card {
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.4);
}

/* iOS 17 */
body[data-login-theme="ios17"] .login-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(22px) saturate(180%);
    border-radius: 22px;
}

body[data-login-theme="ios17"] .login-help-card {
    background: rgba(255,255,255,0.35);
    border-radius: 18px;
}

/* Material Design */
body[data-login-theme="material"] .login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

body[data-login-theme="material"] .login-help-card {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

/* Windows 11 Mica */
body[data-login-theme="mica"] .login-card {
    background: rgba(255,255,255,0.60);
    border-radius: 14px;
}

body[data-login-theme="mica"] .login-help-card {
    background: rgba(255,255,255,0.45);
    border-radius: 12px;
}

/* Glassmorphism */
body[data-login-theme="glass"] .login-card {
    background: rgba(255,255,255,0.20);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.35);
}

body[data-login-theme="glass"] .login-help-card {
    background: rgba(255,255,255,0.25);
    border-radius: 16px;
}

/* Minimaliste */
body[data-login-theme="minimal"] .login-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

body[data-login-theme="minimal"] .login-help-card {
    background: #f3f4f6;
    border-radius: 10px;
}

/* Neutre Premium */
body[data-login-theme="neutre"] .login-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body[data-login-theme="neutre"] .login-help-card {
    background: #f3f4f6;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}


/* ============================================================
   11. AJUSTEMENTS TABLETTE (768px–1023px)
   ============================================================ */

@media (min-width: 768px) and (max-width: 1023px) {

    .login-card {
        max-width: 480px;
        padding: 28px;
    }

    .login-title {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .login-subtitle {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .login-help-card {
        max-width: 480px;
        padding: 16px;
        font-size: 15px;
    }
}


/* ============================================================
   12. FINITIONS PREMIUM — ALIGNEMENTS & COHÉRENCE
   ============================================================ */

.login-card,
.login-help-card {
    margin-left: auto;
    margin-right: auto;
}

.login-field input,
.password-wrapper input {
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.login-field input:focus,
.password-wrapper input:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.25);
    outline: none;
}

#toggle-password {
    transition: opacity 0.25s ease;
}

#toggle-password:hover {
    opacity: 0.7;
}

/* Alignement checkbox */
.remember-field label {
    cursor: pointer;
}

.remember-field input[type="checkbox"] {
    cursor: pointer;
}
