/* Two-step login and one-time-code boxes — see /js/loginStep.js */

.loginStepHidden {
    display: none !important;
}

.otpCodeInput.otpCodeInputEnhanced {
    display: none !important;
}

.otpBoxes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 8px 0 4px 0;
}

.otpBoxes .otpBox {
    box-sizing: border-box;
    width: 52px;
    height: 62px;
    padding: 0;
    margin: 0;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 28px;
    font-weight: 600;
    line-height: 62px;
    text-align: center;
    caret-color: #2563eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    -moz-appearance: textfield;
}

/* A wider gap in the middle reads as 123 456 */
.otpBoxes .otpBox:nth-child(3) {
    margin-right: 10px;
}

.otpBoxes .otpBox:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

.otpBoxes .otpBox.otpBoxFilled {
    border-color: #93c5fd;
    background: #eff6ff;
}

.otpBoxes.otpBoxesDone .otpBox {
    border-color: #22c55e;
    background: #f0fdf4;
}

@media (max-width: 400px) {
    .otpBoxes {
        gap: 6px;
    }

    .otpBoxes .otpBox {
        width: 42px;
        height: 52px;
        font-size: 24px;
        line-height: 52px;
    }

    .otpBoxes .otpBox:nth-child(3) {
        margin-right: 6px;
    }
}

.loginCodeError {
    color: #b91c1c;
}

.otpResendForm {
    display: inline;
}

.otpResendForm button,
.loginStepLink {
    background: none;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
}
