/* ==========================================================================
   Portal login — adopts the public site's design tokens (bookify.css) so the
   entry point matches bookifylb.com. Scoped to .pa-* and to overrides of the
   original .auth-* rules, so no other portal screen is affected.
   ========================================================================== */

.pa-shell {
    min-height: calc(100vh - 220px);
    display: grid;
    place-items: center;
    padding: 56px 20px 72px;
    background: var(--paper);
}

.pa-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius, 16px);
    box-shadow: var(--shadow);
    padding: 34px 32px 30px;
}

.pa-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -.02em;
    margin-bottom: 22px;
}

.pa-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--grad);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    flex: none;
}

.pa-mark svg { width: 18px; height: 18px; }

.pa-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand-ink);
    margin: 0;
}

.pa-card h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 10px 0 6px;
    color: var(--ink);
}

.pa-sub {
    color: var(--muted);
    font-size: 14.5px;
    margin: 0 0 24px;
    line-height: 1.55;
}

/* Neutralise the old tab chrome; the login screen has a single destination. */
.pa-card .auth-tabs { display: none; }
.pa-card .auth-forms { display: block; }
.pa-card .auth-form { display: none; }
.pa-card .auth-form.active { display: block; }

.pa-card .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    position: relative;
}

.pa-card .form-group label {
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 7px;
    letter-spacing: .01em;
}

.pa-card input[type="email"],
.pa-card input[type="password"],
.pa-card input[type="text"] {
    width: 100%;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 12px 14px;
    outline: none;
    transition: border-color .14s ease, box-shadow .14s ease;
}

.pa-card input::placeholder { color: var(--muted); }

.pa-card input[type="email"]:focus,
.pa-card input[type="password"]:focus,
.pa-card input[type="text"]:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.pa-card .forgot-password {
    align-self: flex-end;
    margin-top: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-ink);
    text-decoration: none;
}

.pa-card .forgot-password:hover { text-decoration: underline; }

.pa-card .btn,
.pa-card .login-btn,
.pa-card .sign-up-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .02em;
    color: #fff;
    background: var(--grad);
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 13px 16px;
    margin-top: 8px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .12s ease, filter .12s ease;
}

.pa-card .btn:hover { filter: brightness(1.06); }
.pa-card .btn:active { transform: translateY(1px); }

.pa-card .signup-password-error {
    display: none;
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.45;
}

.pa-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
}

.pa-foot a {
    color: var(--ink-soft);
    font-weight: 600;
    text-decoration: none;
}

.pa-foot a:hover { color: var(--brand-ink); }

.pa-card a:focus-visible,
.pa-card button:focus-visible,
.pa-card input:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .pa-card { padding: 26px 20px 24px; }
    .pa-card h1 { font-size: 26px; }
}
