﻿.otp-input-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    cursor: text;
    user-select: none;
    margin: 16px 0;
    width: fit-content;
}

.otp-hidden-input {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: text;
    caret-color: transparent;
}

.otp-slot {
    width: 56px;
    height: 64px;
    border: 1px solid #cbd5e1;
    border-left: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 400;
    background-color: white;
    transition: all 0.15s ease;
    position: relative;
}

.otp-input-container .otp-slot:first-of-type {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-left: 1px solid #cbd5e1;
}

.otp-input-container .otp-slot:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.otp-caret {
    position: absolute;
    width: 2px;
    height: 24px;
    background-color: #575c61;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
    z-index: 5;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 410px) {
    .otp-slot {
        width: 48px;
        height: 54px;
        font-size: 1.25rem;
    }

    .otp-caret {
        height: 20px;
    }
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

.otp-caret.visible {
    opacity: 1;
    animation: blink 1s infinite;
}

.otp-input-container.focused .otp-slot.active {
    border-color: #2563eb;
    border-left: 1px solid #2563eb;
}


.otp-input-container.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}