.code_input_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.otp-input {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.otp-digit {
    width: 36px;
    height: 48px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background: #ffffff;
    font-family: Consolas, Monaco, monospace;
    font-size: 1.375rem;
    font-weight: 600;
    color: #222222;
    line-height: 48px;
    text-align: center;
    user-select: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.otp-digit.has-value {
    border-color: #888888;
}

.otp-digit.is-active {
    border-color: #4a7cff;
    box-shadow: 0 0 0 2px rgba(74, 124, 255, 0.25);
}

.otp-input.has-error .otp-digit {
    border-color: #d04040;
}

.otp-input.is-disabled .otp-digit {
    opacity: 0.5;
}

.otp-separator {
    width: 8px;
    height: 2px;
    background: #cccccc;
    border-radius: 1px;
    margin: 0 4px;
}

/* the real input is positioned over the digit boxes so paste / OS autofill / IME
   work natively, but the digits above show the value */
.otp-real-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: 0;
    background: transparent;
    color: transparent;
    caret-color: transparent;
    letter-spacing: 0;
    font: inherit;
    text-align: center;
    cursor: text;
}

.code_input_form .message-text {
    min-height: 1.4em;
    font-size: 0.8125rem;
    color: #666666;
    text-align: center;
}

.code_input_form .message-text.error {
    color: #d04040;
}

.code_input_form .message-text.success {
    color: #2a9a4a;
}
