:root {
    --otp-gap: 0.75rem;
    --otp-size: 3rem;
    --otp-radius: 0.5rem;
    --otp-border: 1.5px solid #D0D5DD;
    --otp-border-focus: 2px solid #3B82F6;
    --otp-shadow-focus: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.otp-section {
    max-width: 520px;
    margin: 8vh auto;
    padding: 2rem 1.5rem;
}

.otp-title {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.otp-subtitle {
    color: #6B7280;
    margin: 0 0 1.25rem 0;
}

.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--otp-gap);
    margin: 1rem 0 1.25rem;
}

.otp-countdown {
    margin: -0.5rem 0 1rem;
    font-size: 0.95rem;
    color: #6B7280;
    min-height: 1.25rem;
}

.otp-input {
    width: 100%;
    height: var(--otp-size);
    text-align: center;
    font-size: 1.375rem;
    border: var(--otp-border);
    border-radius: var(--otp-radius);
    outline: none;
    transition: box-shadow 120ms ease, border-color 120ms ease;
}

.otp-input:focus {
    border: var(--otp-border-focus);
    box-shadow: var(--otp-shadow-focus);
}

.otp-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.otp-submit {
    background: #2563EB;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

.otp-submit:hover {
    background: #1D4ED8;
}

.otp-resend {
    background: transparent;
    color: #2563EB;
    border: 1px solid #93C5FD;
    padding: 0.55rem 0.9rem;
    border-radius: 0.375rem;
    cursor: pointer;
}

.otp-resend:hover {
    background: #EFF6FF;
}

.otp-resend[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.validation-summary {
    margin-top: 0.75rem;
}

.validation-summary .error {
    color: #DC2626;
}

.validation-summary .info {
    color: #065F46;
}

@media (max-width: 420px) {
    :root {
        --otp-size: 2.75rem;
    }
}
