/* OTP verification + auth form guards */
.otp-verify-step {
    width: 100%;
}
.otp-actions-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.85rem;
}
.otp-actions-row .verify-email-submit,
.otp-actions-row .otp-resend-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    min-height: 2.85rem;
    margin: 0;
    padding: 0.65rem 0.55rem;
    font-weight: 700;
    border-radius: 10px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.otp-actions-row .otp-resend-btn {
    font-size: 0.92rem;
}
.otp-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.85rem;
}
.otp-card-actions .btn-primary {
    width: 100%;
    padding: 0.65rem 1rem;
    font-weight: 700;
    border-radius: 10px;
}
.otp-resend-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.15rem;
}
.otp-resend-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.otp-resend-hint {
    margin: 0.45rem 0 0;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.4;
}
.otp-code-field {
    margin-bottom: 0.15rem;
}
.otp-code-input {
    width: 100%;
    text-align: center;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.42em;
    padding: 0.75rem 0.5rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-family: ui-monospace, "Cascadia Code", monospace;
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.otp-code-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.otp-spam-tip {
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    background: color-mix(in srgb, var(--primary) 6%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    border-radius: 8px;
    text-align: left;
}

/* Mobile register: large sticky submit above keyboard / thumb zone */
@media (max-width: 768px) {
    #home-register-form,
    form.login-form.otp-protected-form,
    .hero-auth .auth-form.otp-protected-form {
        padding-bottom: 0.35rem;
    }
    #home-register-form > button[type="submit"],
    #home-register-form > .auth-submit-btn,
    .hero-auth #home-register-form .btn-block,
    .hero-auth .auth-form > button[type="submit"].btn-block {
        position: sticky;
        bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
        z-index: 6;
        display: block;
        width: 100%;
        min-height: 3.1rem;
        margin-top: 0.75rem !important;
        padding: 0.85rem 1rem !important;
        font-size: 1.05rem;
        font-weight: 700;
        border-radius: 12px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        box-shadow:
            0 -10px 18px color-mix(in srgb, var(--surface, #fff) 92%, transparent),
            0 6px 16px color-mix(in srgb, var(--primary) 28%, transparent);
        background: var(--primary);
        color: #fff;
    }
}
