/* Customer registration follows the presentation of inscrire_vendeur.php. */
body.customer-registration { margin: 0; background: #f6f7f9; color: #10243d; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.customer-registration .page-section { min-height: 100vh; min-height: 100svh; display: flex; padding: 26px 12px; margin: 0; }
.customer-registration .container { width: 100%; max-width: 784px; padding: 0 12px; margin: auto; }
.customer-registration .registration-shell { flex: 0 0 100%; max-width: 100%; }
.customer-registration .login-title { color: #10243d; font-size: 18px; font-weight: 800; margin: 0 0 10px; text-align: center; }
.customer-registration .login-form { max-width: none; background: #fff; border: 1px solid #e3e7ec; border-radius: 2px; box-shadow: 0 3px 14px rgba(15,23,42,.16); padding: 30px 34px 34px; }
.customer-registration .login-form > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin: 0; }
.customer-registration .login-form > .row > div { width: auto; max-width: none; padding: 0; margin-bottom: 0; }
.customer-registration .login-form > .row > .col-md-12,
.customer-registration .login-form > .row > .col-12:not(.col-md-6) { grid-column: 1 / -1; }
.customer-registration .login-form label { display: block; color: #0f1f35; font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.customer-registration .login-form input { width: 100%; min-width: 0; height: 30px; border: 1px solid #9da8b3; border-radius: 0; background: #fff; color: #10243d; font-size: 14px; padding: 4px 8px; }
.customer-registration .login-form input:focus { border-color: #188da1; outline: 2px solid #188da1; outline-offset: 2px; box-shadow: none; }
.customer-registration .login-form input.error { border-color: #dc3545; }
.customer-registration .register-button,
.customer-registration .social-login .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; background: #188da1; border: 0; border-radius: 0; color: #fff; font-size: 13px; font-weight: 800; padding: 6px 18px; margin: 0; }
.customer-registration .register-button { width: auto; margin-top: 12px; float: right; }
.customer-registration .register-button:hover,
.customer-registration .social-login .btn:hover { background: #127486; }
.customer-registration .social-login .btn:disabled { opacity: .5; cursor: not-allowed; }
.customer-registration .login-link { margin-top: 22px; border-color: #e3e7ec; }
.customer-registration .login-link a { color: #007185; }
.customer-registration .password-helper { border-radius: 2px; box-shadow: none; padding: 8px; margin-top: 8px; }
.customer-registration .alert { overflow-wrap: anywhere; }
@media (max-width: 767px) {
    .customer-registration .login-form { padding: 24px 20px; }
    .customer-registration .login-form > .row { grid-template-columns: minmax(0, 1fr); }
    .customer-registration .login-form input { height: 40px; font-size: 16px; }
    .customer-registration .register-button { width: 100%; float: none; }
    .customer-registration .register-button, .customer-registration .social-login .btn { min-height: 44px; }
}

 .login-form {
        background: #fff;
        padding: 30px 25px;
        border-radius: 8px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        max-width: 450px;
        margin: 0 auto;
    }

    .login-form input {
        height: 38px;
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 4px;
        border: 1px solid #ced4da;
    }

    .login-form input:focus {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    }

    .login-form input.error {
        border-color: #dc3545;
    }

    .error-message {
        color: #dc3545;
        font-size: 12px;
        margin-top: 3px;
        display: none;
    }

    .password-helper {
        display: none;
        margin-top: 10px;
        padding: 12px;
        border: 1px solid #e6eaf0;
        border-radius: 8px;
        background: #f8fafc;
        box-shadow: 0 8px 22px rgba(33, 37, 41, 0.06);
    }

    .password-helper.is-visible {
        display: block;
    }

    .password-rule {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 7px;
        color: #6c757d;
        font-size: 12px;
        line-height: 1.35;
        transition: color 0.2s ease;
    }

    .password-rule:last-child {
        margin-bottom: 0;
    }

    .password-rule i,
    .password-valid-message i {
        width: 18px;
        height: 18px;
        min-width: 18px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        color: #fff;
        background: #dc3545;
    }

    .password-rule.is-valid {
        color: #198754;
        font-weight: 500;
    }

    .password-rule.is-valid i,
    .password-valid-message i {
        background: #198754;
    }

    .password-valid-message {
        display: none;
        align-items: center;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #e6eaf0;
        color: #198754;
        font-size: 13px;
        font-weight: 600;
    }

    .password-valid-message.is-visible {
        display: flex;
    }

    @media (max-width: 575px) {
        .password-helper {
            padding: 10px;
        }
    }

    .login-title {
        font-size: 20px;
        margin-bottom: 20px;
        font-weight: 600;
        color: #333;
    }

    .login-form label {
        font-size: 13px;
        margin-bottom: 4px;
        color: #555;
        font-weight: 500;
    }

    .register-button {
        background: #007bff;
        color: white;
        border: none;
        padding: 10px 20px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.3s;
        width: 100%;
    }

    .register-button:hover {
        background: #0069d9;
    }

    .alert {
        padding: 12px 20px;
        margin-bottom: 20px;
        border-radius: 4px;
        font-size: 14px;
    }

    .alert-success {
        background-color: #d4edda;
        border-color: #c3e6cb;
        color: #155724;
    }

    .alert-danger {
        background-color: #f8d7da;
        border-color: #f5c6cb;
        color: #721c24;
    }

    .social-login {
        margin-top: 20px;
        text-align: center;
    }

    .social-login p {
        font-size: 13px;
        color: #666;
        margin-bottom: 12px;
    }

    .social-login .btn {
        margin: 3px;
        padding: 8px 15px;
        font-size: 13px;
        border-radius: 4px;
        color: white;
        transition: opacity 0.3s;
        border: none;
    }

    .btn-google {
        background-color: #DB4437;
    }

    .btn-facebook {
        background-color: #4267B2;
    }

    .login-link {
        text-align: center;
        margin: 15px 0 5px;
        padding-top: 15px;
        border-top: 1px solid #e9ecef;
    }

    .login-link p {
        font-size: 13px;
        margin-bottom: 0;
        color: #666;
    }

    .login-link a {
        color: #007bff;
        text-decoration: none;
        font-weight: 500;
    }

    .mb-20 {
        margin-bottom: 15px;
    }
