/* =====================================================
   REGISTRATION PAGE  -- supplement only
   -----------------------------------------------------
   The registration page reuses the shared authentication
   design system:
       auth-shared.css      -> status/error blocks, password toggle
       LoginCustomer.css    -> page shell, left promo panel + image,
                               typography, inputs, floating labels,
                               .login-btn, .signup-text, close button,
                               brightness / colours / responsiveness
   Only the two-column field rows and the slightly wider form
   column are specific to this page, so that is all that lives here.
===================================================== */


/* Wider form column than the login page so two inputs sit
   comfortably side by side. */
.login-page--register .login-container {
    max-width: 500px;
}


/* Two fields per row on desktop (first/last name, email/phone,
   password/confirm). Each .input-group keeps the standard 22px
   vertical rhythm it already has from LoginCustomer.css, so no
   extra row margin is needed. */
.register-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
}


/* =====================================================
   MOBILE  -- collapse to a single column
   (the left promo panel is already hidden < 700px by
   LoginCustomer.css)
===================================================== */

@media (max-width: 700px) {

    .login-page--register .login-container {
        max-width: 420px;
    }

    .register-form .form-row {
        grid-template-columns: 1fr;
        column-gap: 0;
    }
}

/* Password requirements popover (register page): appears on hover or focus of the
   Password group, and each rule turns green as it is met. */
.input-group { position: relative; }
.pw-req {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 20;
    width: min(100%, 320px);
    margin-top: 4px;
    padding: 10px 14px;
    background: #fff;
    color: #3b2f2a;
    border: 1px solid #d9cfc6;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    font-size: 13px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
    pointer-events: none;
}
.input-group:hover > .pw-req,
.input-group:focus-within > .pw-req {
    opacity: 1;
    visibility: visible;
    transform: none;
}
.pw-req ul { list-style: none; margin: 6px 0 0; padding: 0; }
.pw-req li { position: relative; padding-left: 22px; color: #6b5d55; }
.pw-req li::before { content: "\25CB"; position: absolute; left: 2px; }
.pw-req li.is-met { color: #1f7a45; font-weight: 600; }
.pw-req li.is-met::before { content: "\2713"; }
@media (prefers-reduced-motion: reduce) { .pw-req { transition: none; } }
