/* ─────────────────────────────────────────────────────────────
   Clinexera — Auth / OTP pages
   Modern, minimalist surface using the brand monochrome identity
   (ink #0a0a0a / #111, muted #6b7280, soft white cards).
   ───────────────────────────────────────────────────────────── */

.otp-wrap {
    min-height: calc(100vh - 130px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.otp-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 18px 40px rgba(16, 24, 40, .06);
    padding: 38px 32px;
    text-align: center;
}

.otp-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(17, 17, 17, .18);
}

.otp-title {
    font-family: 'GT Walsheim Trial', sans-serif;
    font-size: 23px;
    font-weight: 600;
    letter-spacing: -0.4px;
    color: #0a0a0a;
    margin-bottom: 8px;
}

.otp-sub {
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 24px;
}

.otp-sub strong {
    color: #0a0a0a;
    font-weight: 600;
}

.otp-digits {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #0a0a0a;
    border: 1.5px solid #e5e7eb;
    border-radius: 13px;
    background: #fff;
    padding: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.otp-digit:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, .10);
}

.otp-digit::placeholder {
    color: #d1d5db;
}

.otp-field {
    width: 100%;
    height: 48px;
    border: 1.5px solid #e5e7eb;
    border-radius: 13px;
    padding: 0 15px;
    font-size: 14px;
    color: #0a0a0a;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.otp-field::placeholder {
    color: #b6bcc6;
}

.otp-field:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, .10);
}

.otp-card .cx-btn-primary {
    height: 48px;
    border-radius: 13px;
    font-size: 15px;
}

.otp-alert {
    font-size: 13px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.otp-resend-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.otp-resend-text {
    font-size: 13px;
    color: #6b7280;
}

.otp-resend-form {
    display: inline-flex;
}

/* ── Ghost button — the cx-btn-ghost primitive doesn't ship in index.css,
   so the auth context gets its own copy of the app-wide recipe:
   white surface, hairline border → ink border + #f5f5f5 on hover, lift. ── */
.otp-card .cx-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    background: #fff;
    color: #0a0a0a;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease,
                transform .15s ease, box-shadow .15s ease;
}

.otp-card .cx-btn-ghost:hover {
    border-color: #111;
    background: #f5f5f5;
    color: #0a0a0a;
    transform: translateY(-1px);
}

.otp-card .cx-btn-ghost:active {
    transform: translateY(0) scale(.98);
}

.otp-card .cx-btn-ghost:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, .18);
}

.otp-card .cx-btn-ghost:disabled,
.otp-card .cx-btn-ghost.is-disabled {
    color: #9ca3af;
    border-color: #eef0f2;
    background: #fbfbfc;
    font-weight: 500;
    cursor: not-allowed;
    transform: none;
}

.otp-resend-meta {
    margin-top: 14px;
    font-size: 12.5px;
    color: #6b7280;
    min-height: 18px;
}

.otp-timer {
    display: block;
    color: #111;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.otp-left {
    display: block;
    color: #9ca3af;
}

.otp-back {
    display: inline-block;
    margin-top: 18px;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
}

.otp-back:hover {
    color: #111;
}
