/* ============================================================
   OTP Email Login — Clean, Simple Styles
   XStore / WooCommerce compatible
   ============================================================ */

.otp-login-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 24px;
    margin-bottom: 24px;
    font-family: inherit;
    box-sizing: border-box;
}

/* Header row */
.otp-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.otp-box-header svg {
    flex-shrink: 0;
    color: #555;
}

/* Hint text */
.otp-hint {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px;
    line-height: 1.5;
}

/* Email input + button row */
.otp-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

/* All input fields */
.otp-email-field,
.otp-code-field {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    color: #222;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s;
    outline: none;
    -webkit-appearance: none;
}

.otp-email-field:focus,
.otp-code-field:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}

/* OTP code specific */
.otp-code-field {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 6px;
    height: 54px;
    margin-bottom: 12px;
    border-width: 2px;
}

/* Buttons */
.otp-send-btn,
.otp-verify-btn,
.otp-resend-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, opacity 0.15s;
    white-space: nowrap;
    font-family: inherit;
    -webkit-appearance: none;
}

.otp-send-btn {
    background: #1a1a1a;
    color: #fff;
    flex-shrink: 0;
}

.otp-send-btn:hover:not(:disabled) {
    background: #333;
}

.otp-verify-btn {
    background: #1a1a1a;
    color: #fff;
    flex: 1;
    height: 46px;
    font-size: 15px;
}

.otp-verify-btn:hover:not(:disabled) {
    background: #333;
}

.otp-resend-btn {
    background: #fff;
    color: #444;
    border: 1px solid #ccc;
    font-size: 13px;
    height: 46px;
    padding: 0 14px;
}

.otp-resend-btn:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #999;
}

.otp-send-btn:disabled,
.otp-verify-btn:disabled,
.otp-resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sent info banner */
.otp-sent-info {
    background: #f0f7ff;
    border: 1px solid #c8dff5;
    border-radius: 4px;
    padding: 10px 13px;
    font-size: 13px;
    color: #1a4d7a;
    margin-bottom: 14px;
    min-height: 20px;
}

.otp-sent-info:empty {
    display: none;
}

/* Timer row */
.otp-timer-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}

.otp-timer-count {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 14px;
    min-width: 44px;
}

.otp-timer-expiring {
    color: #c0392b !important;
    animation: otp-blink 1s ease-in-out infinite;
}

@keyframes otp-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* Button row */
.otp-btn-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

/* Back link */
.otp-back-link {
    display: inline-block;
    font-size: 12px;
    color: #888;
    text-decoration: none;
    margin-bottom: 10px;
}
.otp-back-link:hover {
    color: #333;
    text-decoration: underline;
}

/* Message boxes */
.otp-msg {
    margin-top: 10px;
    padding: 10px 13px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.otp-msg-success {
    background: #edfaee;
    border: 1px solid #a8d5aa;
    color: #2d6b30;
}

.otp-msg-error {
    background: #fff0ef;
    border: 1px solid #f5b0aa;
    color: #b52b1e;
}

/* OR separator */
.otp-or-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px 0;
}

.otp-or-sep::before,
.otp-or-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

/* Mobile */
@media (max-width: 480px) {
    .otp-row {
        flex-direction: column;
    }
    .otp-send-btn {
        width: 100%;
        height: 46px;
    }
    .otp-btn-row {
        flex-direction: column;
    }
    .otp-verify-btn,
    .otp-resend-btn {
        width: 100%;
    }
    .otp-login-box {
        padding: 18px 16px;
    }
}
