/* OTP HeroSMS Connect — front-end auth pages (v1.2.7):
   /login/, /register/, /forgot-password/, /reset-password/.

   These pages are standalone documents (templates/page-otp-*.php)
   that print otp-home.css (chrome) + otp-buy.css (palette variables
   on .otp-herosms, the pale-blue .otp-buy-hero band, buttons) and
   then THIS file for the form card itself. The auth markup reuses
   the buy page's hero band and sits in a narrower, centred white
   card — same radius / border / soft shadow as .otp-buy-card — so
   the account pages read as one family with the buy flow. Every
   selector is otp-auth- prefixed; nothing here depends on the theme. */

.otp-auth .otp-buy-wrap { padding-bottom: 40px; }

/* ---------- the card ---------- */
.otp-auth-card {
    max-width: 540px;
    margin: 26px auto 0;
    background: #fff;
    border: 1px solid var(--otp-border);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(15, 27, 61, 0.07);
    padding: 30px 32px 32px;
}

/* ---------- fields ---------- */
.otp-auth-field { margin-bottom: 18px; }
.otp-auth-field label {
    display: block;
    color: var(--otp-ink);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 7px;
}
.otp-auth-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--otp-input-border);
    border-radius: 10px;
    background: #fff;
    color: var(--otp-ink);
    font-size: 15.5px;
}
.otp-auth-field input::placeholder { color: #94A3B8; }
.otp-auth-field input:focus {
    outline: none;
    border-color: var(--otp-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.otp-auth-field-hint {
    font-size: 13px;
    margin-top: 6px;
}
.otp-auth-field-error {
    color: var(--otp-red);
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 6px;
}

/* Remember-me row (login). */
.otp-auth-remember {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    color: var(--otp-ink);
    margin: 2px 0 20px;
    cursor: pointer;
}
.otp-auth-remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--otp-blue);
    cursor: pointer;
}

/* ---------- message boxes ---------- */
/* Errors: pale red, one <li> per problem (login) or a single line. */
.otp-auth-errors {
    background: #FEF2F2;
    border: 1px solid var(--otp-red-border);
    color: var(--otp-red);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14.5px;
    font-weight: 600;
}
.otp-auth-errors ul { margin: 0; padding-left: 18px; }
.otp-auth-errors li + li { margin-top: 4px; }
.otp-auth-errors p { margin: 0; }
.otp-auth-errors a { color: var(--otp-red); text-decoration: underline; }

/* Success: soft green (e.g. "Password updated — please log in"). */
.otp-auth-notice {
    background: rgba(34, 197, 94, 0.09);
    border: 1px solid var(--otp-green);
    color: var(--otp-green-dark);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14.5px;
    font-weight: 600;
}

/* Neutral info: pale blue (forgot-password confirmation, the
   registration-closed notice). The confirmation wording is the same
   whether or not an account matched — see auth_do_forgot(). */
.otp-auth-info {
    background: var(--otp-tint-2);
    border: 1px solid var(--otp-border);
    color: var(--otp-ink);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 14.5px;
}
.otp-auth-info a { color: var(--otp-blue); font-weight: 600; text-decoration: none; }
.otp-auth-info a:hover { text-decoration: underline; }

/* ---------- under-form links + logged-in box ---------- */
.otp-auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 20px;
    font-size: 14.5px;
}
.otp-auth-links a {
    color: var(--otp-blue);
    font-weight: 600;
    text-decoration: none;
}
.otp-auth-links a:hover { text-decoration: underline; }

.otp-auth-loggedin p {
    color: var(--otp-ink);
    font-size: 15.5px;
    margin: 0;
}
.otp-auth-loggedin .otp-buy-login-actions { margin-top: 18px; }

/* Plain paragraph used under an error box (reset page). */
.otp-auth-text { font-size: 14.5px; margin: 0 0 6px; }
.otp-auth-text a { color: var(--otp-blue); font-weight: 600; text-decoration: none; }
.otp-auth-text a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
    .otp-auth-card { padding: 22px 18px 24px; margin-top: 20px; }
    .otp-auth-links { flex-direction: column; align-items: flex-start; }
    .otp-auth-loggedin .otp-buy-login-btn { flex: 1 1 auto; text-align: center; }
}
