/* ============================================================
   DZVAULT — Formulaires Auth (Connexion / Inscription / Reset)
   ============================================================ */

/* ── Layout principal ── */
.dzvault-auth-wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
    max-width: 1060px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}
/* Centrage dans le container de la page */
.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 100% !important;
    padding: 0 !important;
}
@media (max-width: 800px) {
    .dzvault-auth-wrap {
        grid-template-columns: 1fr;
        padding: 32px 16px 48px;
    }
    .dza-separator { flex-direction: row; padding: 16px 0; }
    .dza-sep-line  { flex: 1; height: 1px; width: auto; }
}

/* ── Panneau ── */
.dza-panel {
    background: #fff;
    border: 1px solid rgba(8,80,65,0.1);
    border-radius: 18px;
    padding: 36px 36px 32px;
    box-shadow: 0 4px 28px rgba(8,80,65,0.07);
    transition: box-shadow 0.2s;
}
.dza-panel:hover {
    box-shadow: 0 10px 36px rgba(8,80,65,0.11);
}

/* ── En-tête panneau ── */
.dza-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #E1F5EE;
}
.dza-panel-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dza-panel-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #2C2C2A !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    border: none !important;
}
.dza-panel-sub {
    font-size: 13px !important;
    color: #888 !important;
    margin: 0 !important;
}

/* ── Séparateur central ── */
.dza-separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    margin-top: 120px;
}
.dza-sep-line {
    width: 1px;
    flex: 1;
    background: rgba(8,80,65,0.12);
}
.dza-sep-text {
    font-size: 12px;
    font-weight: 600;
    color: #aaa;
    background: #F5FAF8;
    padding: 6px 10px;
    border-radius: 20px;
    border: 1px solid rgba(8,80,65,0.1);
    white-space: nowrap;
}

/* ── Formulaire ── */
.dza-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.dza-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 400px) { .dza-row-2 { grid-template-columns: 1fr; } }

.dza-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dza-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4A4A48;
}
.dza-required { color: #E24B4A; font-size: 14px; }

/* Input */
.dza-input {
    width: 100% !important;
    padding: 11px 14px !important;
    border: 1.5px solid rgba(8,80,65,0.15) !important;
    border-radius: 9px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    color: #2C2C2A !important;
    background: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    outline: none !important;
    box-sizing: border-box !important;
}
.dza-input:focus {
    border-color: #1D9E75 !important;
    box-shadow: 0 0 0 3px rgba(29,158,117,0.12) !important;
}
.dza-input::placeholder { color: #bbb !important; }
.dza-input:invalid:not(:placeholder-shown) {
    border-color: #E24B4A !important;
}

/* Input avec bouton toggle */
.dza-input-wrap {
    position: relative;
}
.dza-input-wrap .dza-input {
    padding-right: 44px !important;
}
.dza-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.dza-toggle-pwd:hover { color: #085041; }

/* Téléphone */
.dza-phone-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(8,80,65,0.15);
    border-radius: 9px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.dza-phone-wrap:focus-within {
    border-color: #1D9E75;
    box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}
.dza-phone-prefix {
    background: #F5FAF8;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #085041;
    border-right: 1.5px solid rgba(8,80,65,0.12);
    white-space: nowrap;
    flex-shrink: 0;
}
.dza-phone-input {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    flex: 1;
}
.dza-phone-input:focus {
    border: none !important;
    box-shadow: none !important;
}
.dza-field-hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

/* Remember me */
.dza-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.dza-forgot-link {
    font-size: 13px;
    color: #1D9E75;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.dza-forgot-link:hover { color: #085041; }

/* Checkbox custom */
.dza-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #4A4A48;
    user-select: none;
}
.dza-checkbox {
    width: 18px !important;
    height: 18px !important;
    border: 2px solid rgba(8,80,65,0.25) !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    accent-color: #085041;
}

/* Info box */
.dza-info-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #E6F1FB;
    border: 1px solid rgba(24,95,165,0.2);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #185FA5;
    line-height: 1.6;
}
.dza-info-box svg { flex-shrink: 0; margin-top: 1px; }

/* Boutons */
.dza-btn-primary {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 13px 20px !important;
    background: #085041 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-family: inherit !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(8,80,65,0.2) !important;
}
.dza-btn-primary:hover {
    background: #1D9E75 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(29,158,117,0.3) !important;
}
.dza-btn-register {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 13px 20px !important;
    background: linear-gradient(135deg, #534AB7, #7F77DD) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    font-family: inherit !important;
    box-shadow: 0 4px 16px rgba(83,74,183,0.25) !important;
}
.dza-btn-register:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(83,74,183,0.35) !important;
    background: linear-gradient(135deg, #443CA0, #6E66CC) !important;
}

/* ── RESET PASSWORD ── */
.dza-reset-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 0 64px;
}
.dza-reset-header {
    text-align: center;
    margin-bottom: 32px;
}
.dza-reset-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #E1F5EE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.dza-reset-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #2C2C2A !important;
    margin: 0 0 8px !important;
}
.dza-reset-sub {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* Règles mot de passe */
.dza-pwd-rules {
    background: #F5FAF8;
    border: 1px solid rgba(8,80,65,0.1);
    border-radius: 12px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 28px;
}
@media (max-width: 400px) { .dza-pwd-rules { grid-template-columns: 1fr; } }

.dza-pwd-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #888;
    transition: color 0.2s;
}
.dza-rule-icon {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(226,75,74,0.1);
    color: #E24B4A;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.dza-pwd-rule.rule-ok { color: #085041; }
.dza-pwd-rule.rule-ok .dza-rule-icon {
    background: #E1F5EE;
    color: #085041;
}

/* Barre de force */
.dza-strength-bar {
    height: 5px;
    background: rgba(8,80,65,0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 8px;
}
.dza-strength-fill {
    height: 100%;
    width: 0;
    border-radius: 10px;
    transition: width 0.3s ease, background 0.3s ease;
}
.strength-weak   { background: #E24B4A; }
.strength-medium { background: #EF9F27; }
.strength-strong { background: #1D9E75; }
.dza-strength-label {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Message correspondance */
.dza-match-msg {
    font-size: 12px;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* ── JS toggle pwd dans login form ── */
.dza-login-panel .dza-toggle-pwd,
.dza-register-panel .dza-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

/* ── Message succès inscription ── */
.woocommerce-account .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-message {
    background: #E1F5EE !important;
    border: 1.5px solid #1D9E75 !important;
    border-top: 4px solid #085041 !important;
    border-radius: 12px !important;
    padding: 18px 22px !important;
    color: #085041 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}
.woocommerce-account .woocommerce-message::before {
    display: none !important;
}
.woocommerce-account .woocommerce-error,
.woocommerce-MyAccount-content .woocommerce-error {
    background: #FCEBEB !important;
    border: 1.5px solid #E24B4A !important;
    border-top: 4px solid #A32D2D !important;
    border-radius: 12px !important;
    padding: 14px 18px !important;
    color: #A32D2D !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
    list-style: none !important;
}
.woocommerce-account .woocommerce-error li {
    padding: 4px 0 !important;
}
