#otp-form-errors {
    display: none;
}

.otp-field {
    display: flex;
    justify-content: center;
    gap: 1.625rem;
}

.otp-field input {
    width: 4.0625rem; /* 65px */
    height: 4.5rem; /* 75px */
    border: none;
    border-bottom: 4px solid var(--glass-active);
    font-size: 2.2rem;
    text-align: center;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
    color: var(--text-primary)
}

.otp-field .otp-digit:focus {
    border-bottom-color: var(--text-secondary) !important;
    transform: scale(1.025);
}

.otp-field .otp-digit:is(:disabled, :read-only) {
    border-bottom-color: var(--glass-bg) !important;
    opacity: 0.6;
}

.otp-field .otp-digit.filled {
    border-bottom-color: var(--glass-highlight);
}

.otp-field .otp-digit.error {
    border-bottom-color: var(--text-error);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-10px); }
    80% { transform: translateX(10px); }
}

/* Optional: Hide spin buttons for number inputs */
.otp-field input::-webkit-inner-spin-button,
.otp-field input::-webkit-outer-spin-button {
    display: none;
    margin: 0;
}

.otp-title {
    font-size: 24px;
    color: var(--text-primary);
    text-align: center;
    margin: 40px 40px 20px 40px;
    font-weight: 400;
}

.otp-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.otp-subtitle a {
    color: var(--gradient-bright);
}

.otp-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

#verifyBtn {
    content: var(--noop-placeholder);
}

#verifyBtn > span {
    font-size: 1.1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    font-weight: 600;
}

#verifyBtn > .div {
    font-size: 1.1rem;
    font-weight: 600;
}

#resendBtn:disabled {
    background: none;
    border-color: transparent;
}


/* 
        .btn {
            padding: 14px 32px;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 160px;
        }
        .btn-primary:disabled {
            background: #ccc;
            cursor: not-allowed;
            transform: none;
        } */

#message {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: none;
    padding: 10px;
    border: none;
    margin-bottom: 2rem;
}

#message.hidden {
    visibility: hidden;
}

#message.success-message {
    color: var(--text-accent);
}

#message.error-message {
    color: var(--text-error);
}

/* Loading spinner */
:is(#verifyBtn, #resendBtn) > .loading > .spinner {
    /* border: 2px solid #f3f3f3; */
    border-top: 2px solid #667eea;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

:is(#verifyBtn, #resentBtn):disabled {
    opacity: 0.5;
}

:is(#verifyBtn, #resendBtn) > .loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

:is(#verifyBtn, #resendBtn) > .hidden {
    display: none;
}

/* Mobile-First Responsive Design */

/* Very small phones (320px - 480px) */
@media screen and (max-width: 480px) {
    .otp-title {
        font-size: 20px;
        margin: 20px 15px 15px 15px;
    }
    
    .otp-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .otp-field {
        gap: 0.5rem;
        padding: 0 10px;
    }
    
    .otp-field input {
        width: 2.2rem;   /* ~35px */
        height: 2.5rem;  /* ~40px */
        font-size: 1.2rem;
        border-bottom: 2px solid var(--glass-active);
    }
    
    .otp-actions {
        gap: 12px;
        padding: 0 15px;
    }
    
    #verifyBtn {
        width: 100%;
        max-width: 280px;
    }
}

/* Small phones (481px - 576px) */
@media screen and (min-width: 481px) and (max-width: 576px) {
    .otp-title {
        font-size: 22px;
        margin: 25px 20px 18px 20px;
    }
    
    .otp-subtitle {
        font-size: 17px;
    }
    
    .otp-field {
        gap: 0.75rem;
    }
    
    .otp-field input {
        width: 2.5rem;   /* ~40px */
        height: 2.8rem;  /* ~45px */
        font-size: 1.3rem;
        border-bottom: 2px solid var(--glass-active);
    }
}

/* Large phones / Small tablets (577px - 768px) */
@media screen and (min-width: 577px) and (max-width: 768px) {
    .otp-title {
        font-size: 24px;
        margin: 30px 25px 20px 25px;
    }
    
    .otp-field {
        gap: 1rem;
    }
    
    .otp-field input {
        width: 2.8rem;   /* ~45px */
        height: 3.2rem;  /* ~51px */
        font-size: 1.4rem;
        border-bottom: 2px solid var(--glass-active);
    }
}

/* Tablets (769px - 992px) */
@media screen and (min-width: 769px) and (max-width: 992px) {
    .otp-field {
        gap: 1.2rem;
    }
    
    .otp-field input {
        width: 3rem;     /* ~48px */
        height: 3.5rem;  /* ~56px */
        font-size: 1.6rem;
        border-bottom: 3px solid var(--glass-active);
    }
}

/* Small desktops (993px - 1200px) */
@media screen and (min-width: 993px) and (max-width: 1200px) {
    .otp-field {
        gap: 1.4rem;
    }
    
    .otp-field input {
        width: 3.5rem;   /* ~56px */
        height: 3.8rem;  /* ~61px */
        font-size: 1.8rem;
        border-bottom: 3px solid var(--glass-active);
    }
}

/* Large desktops (1201px - 1400px) */
@media screen and (min-width: 1201px) and (max-width: 1400px) {
    .otp-field {
        gap: 1.5rem;
    }
    
    .otp-field input {
        width: 3.8rem;   /* ~61px */
        height: 4rem;    /* ~64px */
        font-size: 2rem;
        border-bottom: 4px solid var(--glass-active);
    }
}

/* Extra large screens (1401px+) */
@media screen and (min-width: 1401px) {
    .otp-field {
        gap: 1.6rem;
    }
    
    .otp-field input {
        width: 4.0625rem; /* ~65px - original size */
        height: 4.5rem;   /* ~72px - original size */
        font-size: 2.2rem;
        border-bottom: 4px solid var(--glass-active);
    }
}

/* Landscape orientation adjustments for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .otp-title {
        font-size: 18px;
        margin: 10px 15px 8px 15px;
    }
    
    .otp-subtitle {
        font-size: 14px;
        margin-bottom: 0.3rem;
    }
    
    .otp-field {
        gap: 0.6rem;
    }
    
    .otp-field input {
        width: 2rem;
        height: 2.3rem;
        font-size: 1.1rem;
    }
    
    .otp-actions {
        gap: 8px;
    }
    
    #message {
        margin-bottom: 1rem;
        padding: 5px;
    }
}

/* High-DPI displays */
/* @media screen and (min-resolution: 2dppx) {
    .otp-field input {
        border-bottom-width: 0.5px;
    }
} */
