/* Container */
.otp-box {
    margin: 20px 0;
}

/* Rows */
.otp-row {
    margin-bottom: 12px;
}

/* Input */
.otp-input {
    width: 100%;
    height: 45px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Buttons */
.send-otp,
.verify-otp {
    position: relative;
    padding: 8px 18px;
    border-radius: 6px;
    overflow: hidden;
}

/* Loader */
.loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.loading .loader {
    display: inline-block;
}

.loading .btn-text {
    opacity: 0.6;
}

/* Success message */
.otp-message {
    font-size: 14px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

/* States */
.otp-success {
    color: green;
}

.otp-error {
    color: red;
}

/* Verified tick */
.verified-icon {
    color: green;
    margin-left: 8px;
    font-weight: bold;
}

/* Verified state */
.otp-success {
    color: green;
    font-weight: 500;
}

/* Verified badge */
.otp-badge {
    margin-top: 8px;
    display: inline-block;
    background: #e6f9ed;
    color: #28a745;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 13px;
}

/* Hide smooth (optional animation) */
.send-otp,
.verify-otp {
    transition: all 0.3s ease;
}

/* Locked input */
.otp-input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}