/* Login page — OTP verify step and shared auth labels */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

.auth-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--kf-text);
}

.auth-hint {
    font-size: var(--kf-text-sm);
    margin-top: 3px;
}

.toggle-email {
    font-size: 0.82rem;
}

.verify-subtitle {
    font-size: 0.82rem;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.45;
}

.verify-intro {
    margin-top: 0.75rem;
    margin-bottom: 0.65rem;
}

.verify-intro-line {
    font-size: 0.82rem;
    font-weight: 400;
    color: #6c757d;
    line-height: 1.45;
    margin: 0;
}

.verify-intro-line + .verify-intro-line {
    margin-top: 0.2rem;
}

.verify-mobile {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
}

.verify-panel {
    padding-top: 0;
}

.otp-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin: 0 0 0.85rem;
    flex-wrap: wrap;
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .otp-row {
        gap: 6px;
    }

    .otp-box {
        width: 36px;
        height: 44px;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .otp-divider {
        width: 6px;
        font-size: 1rem;
    }
}

@media (max-width: 359.98px) {
    .otp-box {
        width: 32px;
        height: 40px;
        font-size: 1rem;
    }

    .otp-row {
        gap: 4px;
    }
}

.otp-box {
    width: 42px;
    height: 50px;
    border: 1.5px solid #e2e6f0;
    border-radius: 10px;
    background: #f8f9fc;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0;
    color: #2f2a6f;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.otp-box:focus {
    border-color: #5b5be0;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(91, 91, 224, 0.14);
}

.otp-row.is-invalid .otp-box {
    border-color: rgba(220, 53, 69, 0.65);
    background: #fff5f5;
}

.otp-box.filled {
    border-color: #5b5be0;
    background: rgba(91, 91, 224, 0.06);
}

.otp-divider {
    width: 10px;
    text-align: center;
    color: #ced4da;
    font-size: 1.1rem;
    font-weight: 300;
    user-select: none;
    flex-shrink: 0;
}

.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-box[type=number] {
    -moz-appearance: textfield;
}

.otp-resend {
    text-align: center;
    font-size: 0.84rem;
    color: #6c757d;
    margin-bottom: 1.15rem;
    min-height: 1.25rem;
}

.otp-resend-timer {
    font-weight: 500;
    color: #868e96;
}

.otp-resend-btn {
    font-size: inherit;
    font-weight: 500;
    padding: 0;
    border: none;
    background: none;
    color: #5b5be0;
    cursor: pointer;
    text-decoration: none;
}

.otp-resend-btn:hover:not(:disabled) {
    color: #3f3fb3;
    text-decoration: underline;
}

.otp-resend-btn:disabled {
    color: #adb5bd;
    cursor: not-allowed;
    text-decoration: none;
}

.verify-change-link {
    display: inline-block;
    font-size: 0.84rem;
    font-weight: 500;
    color: #5b5be0;
    text-decoration: none;
}

.verify-change-link:hover {
    color: #3f3fb3;
    text-decoration: underline;
}
