/* Shared staff-like auth shell for portal login / OTP / forgot */
.pw-auth {
    margin: 0;
    min-height: 100vh;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #0f172a;
    background:
        radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--pw-secondary, #CC9F4B) 28%, transparent), transparent 60%),
        radial-gradient(900px 420px at 100% 0%, color-mix(in srgb, var(--pw-primary, #123155) 22%, transparent), transparent 55%),
        #f1f5f9;
}
.pw-auth__shell {
    width: min(28rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}
.pw-auth__card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.35rem 1.4rem 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
.pw-auth__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.1rem;
}
.pw-auth__mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .65rem;
    background: var(--pw-primary, #123155);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    display: grid;
    place-items: center;
}
.pw-auth__title {
    font-weight: 750;
    color: var(--pw-primary, #123155);
    font-size: 1rem;
    line-height: 1.2;
}
.pw-auth__subtitle {
    color: #64748b;
    font-size: .78rem;
    margin-top: .1rem;
}
.pw-auth__heading {
    margin: 0 0 .35rem;
    font-size: 1.35rem;
    font-weight: 750;
    color: var(--pw-primary, #123155);
}
.pw-auth__lede {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.45;
}
.pw-auth label {
    display: block;
    font-size: .82rem;
    font-weight: 650;
    margin: 0 0 4px;
    color: #334155;
}
.pw-auth input[type="email"],
.pw-auth input[type="password"],
.pw-auth input[type="text"],
.pw-auth input[type="tel"] {
    width: 100%;
    min-height: 44px;
    border: 1.5px solid #94a3b8;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 1rem;
    background: #fff;
    color: #0f172a;
    margin-bottom: 12px;
    box-sizing: border-box;
}
.pw-auth input:focus {
    outline: none;
    border-color: var(--pw-primary, #123155);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pw-primary, #123155) 22%, transparent);
}
.pw-auth__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    background: var(--pw-primary, #123155);
    color: #fff;
    margin-top: .25rem;
}
.pw-auth__btn:hover { filter: brightness(1.05); }
.pw-auth__btn--ghost {
    background: #fff;
    color: #0f172a;
    border-color: #cbd5e1;
    margin-top: .55rem;
}
.pw-auth__links {
    margin-top: 1rem;
    text-align: center;
    color: #64748b;
    font-size: .85rem;
}
.pw-auth__links a {
    color: var(--pw-primary, #123155);
    font-weight: 650;
    text-decoration: none;
}
.pw-auth__links a:hover { text-decoration: underline; }
.pw-auth__flash {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: .9rem;
}
.pw-auth__err {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: .9rem;
}
.pw-auth__err ul { margin: 0; padding-left: 1.1rem; }
.pw-auth__hint {
    color: #64748b;
    font-size: .8rem;
    margin: -.35rem 0 .85rem;
}
.pw-auth__check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-bottom: 8px;
    font-size: .9rem;
}
.pw-auth__check input { width: auto; min-height: auto; margin: 0; }

/* OTP digit boxes */
.pw-otp {
    display: flex;
    justify-content: space-between;
    gap: .45rem;
    margin: .35rem 0 1rem;
}
.pw-otp input {
    width: 2.65rem !important;
    min-height: 3rem !important;
    margin: 0 !important;
    text-align: center;
    font-size: 1.35rem !important;
    font-weight: 750;
    letter-spacing: 0;
    padding: 0 !important;
}
.pw-otp-autofill {
    background: #fffbeb;
    border: 1px dashed #f59e0b;
    color: #92400e;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: .82rem;
    margin-bottom: 12px;
}
.pw-otp-autofill strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .12em;
}
.pw-otp-hidden-field,
.fi-simple-layout .pw-otp-hidden-field {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}
