/* FG-034 AUTH-B — one responsive Account Recovery / login experience.
   Desktop + iPhone. No device-specific routes or templates. */

body.login-page {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    padding: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px));
}

.login-card {
    width: min(420px, calc(100% - 32px));
    max-width: 420px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    min-height: 44px;
    font-size: 1rem;
}

.login-form .button.login-primary,
a.login-primary,
.login-primary-link.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    text-align: center;
}

.login-forgot {
    margin: 0 0 4px;
}

.login-forgot-link,
.login-secondary-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.login-secondary {
    margin: 16px 0 0;
    text-align: center;
}

.login-card table {
    display: none;
}

@media (min-width: 768px) {
    .login-card {
        width: 420px;
        max-width: 420px;
    }
}

@media (max-width: 767px) {
    .login-card {
        width: calc(100% - 24px);
        max-width: none;
        padding: 24px 18px;
    }

    .login-form .button.login-primary,
    a.login-primary,
    .login-primary-link.button {
        min-height: 48px;
    }
}

/* Show / hide password (office and supplier sign-in). */
.password-reveal { position: relative; display: block; width: 100%; }
.password-reveal input { width: 100%; min-height: 44px; font-size: 1rem; padding-right: 48px; }
.password-reveal-toggle {
    position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 6px; background: transparent; color: #4a5560; cursor: pointer; padding: 0;
}
.password-reveal-toggle:hover { color: #17212b; background: rgba(0, 0, 0, 0.05); }
.password-reveal-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }

/* A site that cannot send email says so on the forgot-password pages (21 Oct 2026). */
.login-notice {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #d8b25a;
    border-left-width: 4px;
    border-radius: 8px;
    background: #fff8e6;
    color: #3a2c08;
    font-size: 0.95rem;
    line-height: 1.45;
}
.login-notice p { margin: 0 0 6px; }
.login-notice p:last-child { margin-bottom: 0; }
