/* ALERTS */
.alert-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }

/* PASSWORD TOGGLE */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px !important; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; cursor: pointer;
    color: #9CA3AF; padding: 8px 10px; border-radius: 6px; font-size: 14px;
    transition: color .12s;
}
.pw-toggle:hover { color: #C2410C; }

/* EXTRA ROW : remember + forgot */
.login-extra {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin: 4px 0 18px; flex-wrap: wrap;
}
.remember-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: #4B5563; cursor: pointer; margin: 0;
}
.remember-row input[type="checkbox"] { width: 16px; height: 16px; margin: 0; accent-color: #C2410C; }
.link-inline { color: #C2410C; font-size: 13px; font-weight: 600; text-decoration: none; }
.link-inline:hover { text-decoration: underline; }

/* BTN GHOST */
.btn-ghost {
    background: transparent;
    color: #4B5563;
    border: 1px solid #E5E7EB;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .12s;
}
.btn-ghost:hover { background: #FFF7ED; border-color: #C2410C; color: #C2410C; }
.btn-secondary {
    background: #FFF7ED;
    color: #C2410C;
    border: 1px solid #FED7AA;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .12s;
}
.btn-secondary:hover { background: #FED7AA; }
.btn-block { width: 100%; }

/* RESEND BLOCK */
.resend-block { margin-top: 16px; }
.resend-hint { font-size: 12.5px; color: #6B7280; text-align: center; margin: 0 0 8px; }

/* DIVIDER */
.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: #9CA3AF; font-size: 12px;
    text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: #E5E7EB;
}

/* SOCIAL BUTTONS */
.social-buttons { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 18px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: all .12s;
    font-family: inherit;
}
.social-btn:hover { border-color: #C2410C; background: #FFFBF5; }
.social-btn i { font-size: 16px; }
.social-google i { color: #DB4437; }
.social-apple i { color: #000; }
.social-facebook i { color: #1877F2; }

/* AUTH FOOTER LINKS */
.auth-footer-links {
    display: flex; justify-content: center; gap: 20px;
    margin-top: 24px; padding-top: 20px; border-top: 1px solid #F1E7DA;
    flex-wrap: wrap;
}
.auth-footer-links a {
    font-size: 12.5px; color: #6B7280; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color .12s;
}
.auth-footer-links a:hover { color: #C2410C; }
.auth-footer-links i { font-size: 12px; }

/* ============================================================ */
/* CUSTOMER (adaptation des mêmes styles avec préfixe cw-)       */
/* ============================================================ */
.cw-pw-wrap { position: relative; }
.cw-pw-wrap input { padding-right: 42px !important; }
.cw-pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: transparent; border: 0; cursor: pointer;
    color: #9CA3AF; padding: 8px 10px; border-radius: 6px; font-size: 14px;
}
.cw-pw-toggle:hover { color: #C2410C; }

.cw-login-extra { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.cw-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #4B5563; cursor: pointer; }
.cw-remember input { width: 16px; height: 16px; margin: 0; accent-color: #C2410C; }
.cw-link-inline { color: #C2410C; font-size: 13px; font-weight: 600; text-decoration: none; }
.cw-link-inline:hover { text-decoration: underline; }

.cw-btn-secondary {
    background: #FFF7ED; color: #C2410C; border: 1px solid #FED7AA;
    padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
    text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; cursor: pointer;
}

.cw-auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: #9CA3AF; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.cw-auth-divider::before, .cw-auth-divider::after { content: ''; flex: 1; height: 1px; background: #E5E7EB; }

.cw-social-buttons { display: flex; flex-direction: column; gap: 10px; }
.cw-social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 18px; border: 1.5px solid #E5E7EB; border-radius: 10px; background: #fff;
    font-size: 14px; font-weight: 600; color: #374151; text-decoration: none;
    transition: all .12s; font-family: inherit;
}
.cw-social-btn:hover { border-color: #C2410C; background: #FFFBF5; }

.cw-auth-footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #F1E7DA; flex-wrap: wrap; }
.cw-auth-footer-links a { font-size: 12.5px; color: #6B7280; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.cw-auth-footer-links a:hover { color: #C2410C; }

/* Alertes customer */
.cw-alert { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.cw-alert-danger { background: #FEE2E2; color: #991B1B; }