/* ── Auth Shell (Login / Verify) ─────────────────────────────────────────── */

.auth-shell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100dvh;
    padding: 1.5rem 1rem 2.5rem;
    background: #f5f7fa;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem 1.75rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-logo img {
    height: 3.5rem;
    width: auto;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #3F6F60;
    margin: 0 0 0.5rem;
}

.auth-subtitle {
    font-size: 0.9375rem;
    color: #4a5568;
    text-align: center;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* ── Fields ──────────────────────────────────────────────────────────────── */

.field-group {
    margin-bottom: 1.25rem;
}

.field-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.375rem;
}

.auth-input.dxbl-edit {
    width: 100%;
}

/* Ensure tap target height ≥ 44px */
.auth-input .dxbl-edit-input {
    min-height: 3rem;
    font-size: 1rem;
    border-radius: 0.5rem;
}

/* ── OTP Digit Boxes ──────────────────────────────────────────────────────── */

.otp-boxes {
    display: flex;
    gap: 0.625rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-box {
    width: 3.25rem;
    height: 3.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    color: #1a202c;
    background: #f7fafc;
    outline: none;
    caret-color: transparent;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    -moz-appearance: textfield;
}

.otp-box:focus {
    border-color: #3F6F60;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(63, 111, 96, 0.18);
}

.otp-box--filled {
    border-color: #3F6F60;
    background: #fff;
}

.otp-verifying {
    text-align: center;
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.auth-hint {
    font-size: 0.8125rem;
    color: #718096;
    text-align: center;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

@media (max-width: 380px) {
    .otp-boxes { gap: 0.4375rem; }
    .otp-box   { width: 2.75rem; height: 3.25rem; font-size: 1.5rem; border-radius: 0.625rem; }
}

.field-error {
    display: block;
    font-size: 0.8125rem;
    color: #e53e3e;
    margin-top: 0.25rem;
}

/* ── Error Banner ─────────────────────────────────────────────────────────── */

.auth-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 0.5rem;
    color: #c53030;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ── Primary Button ──────────────────────────────────────────────────────── */

.auth-btn.dxbl-btn {
    width: 100%;
    min-height: 3.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.625rem;
    margin-top: 0.25rem;
}

/* ── Secondary Link Button ───────────────────────────────────────────────── */

.auth-link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #3F6F60;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.75rem 0;
    cursor: pointer;
    text-decoration: underline;
    min-height: 2.75rem;
}

.auth-link:disabled {
    color: #a0aec0;
    cursor: default;
    text-decoration: none;
}

/* ── Responsive: very small phones ──────────────────────────────────────── */

@media (max-width: 380px) {
    .auth-card {
        padding: 1.5rem 1rem 1.25rem;
    }
    .auth-title {
        font-size: 1.25rem;
    }
}

/* ── Household member picker ─────────────────────────────────────────────── */

.member-pick-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 1.25rem 0;
}

.member-pick-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    color: #1a202c;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-height: 3.25rem;
}

.member-pick-btn:hover {
    border-color: #3F6F60;
    background: #f0f7f5;
}
