/* ============================================================
   public.css — shared styling for the PUBLIC / PATIENT-FACING
   flows (login, create, reset, check-in).

   These pages are hard-isolated (config_login / config_create /
   config_checkin) and deliberately do NOT load assets/main.css,
   so their shared chrome lives here instead.
   ============================================================ */

/* ── Public action button ─────────────────────────────────
   Blue solid = the primary submit on the unauthenticated &
   patient-facing flows. Base = standard 40px-high button; add
   --lg for the larger check-in style. Width & margin are layout,
   so they stay per-page (these forms place the button differently). */
.btn-public {
    /* block-level (not inline-flex) so page-local `margin: … auto` centers a
       narrower-than-container button on login/create/reset. checkin centers via
       its own flex-column parent, so it's unaffected either way. */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    height: 40px;
    background: #5a7f99;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s, box-shadow 0.2s, transform 0.1s;
    box-shadow: 0 1px 2px rgba(90, 145, 153, 0.20);
}

.btn-public:hover:not(:disabled) {
    background: #456880;
    box-shadow: 0 2px 8px rgba(90, 145, 153, 0.30);
}

.btn-public:active { transform: translateY(1px); }
.btn-public:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-public .material-symbols-outlined {
    font-size: 18px;
    color: inherit;
}

/* Large variant — check-in flow (taller, rounder, 16px) */
.btn-public--lg {
    height: auto;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(90, 127, 153, 0.25);
}

.btn-public--lg:hover:not(:disabled) {
    box-shadow: 0 3px 12px rgba(90, 127, 153, 0.35);
}

.btn-public--lg:disabled {
    opacity: 0.55;
    box-shadow: none;
}


/* ============================================================
   Auth-page chrome — shared by login / create / reset.
   (checkin is bespoke; it only borrows .btn-public + the logo.)
   Form inputs / error banners stay page-local: they've diverged
   per page (selects, readonly, info banners, error-box, etc.).
   ============================================================ */
.auth-shell { width: 100%; max-width: 420px; transform: translateY(-40px); }

.brand-mark { text-align: center; margin-bottom: 26px; }
.brand-logo-mask {
    height: 160px;
    width: 160px;
    display: inline-block;
    background: #5a7f99;
    mask: url('/assets/images/logo_clear.png') center / contain no-repeat;
    -webkit-mask: url('/assets/images/logo_clear.png') center / contain no-repeat;
}
.brand-mark .nivensa-title {
    margin: 10px 0 0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 5px;
    color: #456880;
    user-select: none;
}

.auth-card {
    background: #fff;
    border: 1px solid #e3e6e8;
    border-radius: 12px;
    padding: 36px 38px 32px;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 8px 28px rgba(40, 60, 70, 0.06);
}

.login-header { text-align: center; margin-bottom: 26px; }
.login-header h1 { margin: 0 0 6px; font-weight: 300; font-size: 24px; color: #545454; letter-spacing: -0.2px; }
.login-header p  { margin: 0; font-size: 13px; color: #888; font-weight: 400; }

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 500;
    margin-bottom: 6px;
}

.password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #aaa;
    transition: color 0.15s, background 0.15s;
}
.password-toggle:hover { color: #5a9199; background: #f0f4f5; }
.password-toggle .material-symbols-outlined { font-size: 18px; color: inherit; }

.login-footer {
    margin-top: 22px;
    text-align: center;
    font-size: 11px;
    color: #aaa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #5a9199;
    font-weight: 500;
    letter-spacing: 0.4px;
}
.secure-badge .material-symbols-outlined { font-size: 13px; color: inherit; }
.login-footer .copy { color: #b5b5b5; font-size: 11px; letter-spacing: 0.3px; }

/* Password-strength checklist (create / reset) */
.pw-rules {
    display: block;
    margin-top: 8px;
    padding: 10px 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    list-style: none;
    margin-bottom: 0;
    padding-left: 12px;
}
.pw-rules li {
    font-size: 12px;
    color: #a0aec0;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}
.pw-rules li.met { color: #38a169; }
.pw-rules li .material-symbols-outlined { font-size: 14px; }
