/* TradyFox Email OTP Styles */

/* Login/Register Buttons */
.tfotp-open-login, .tfotp-open-register {
    border: none;
    background: #586de8;
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.tfotp-open-login:hover, .tfotp-open-register:hover { background: #3e53d2; }

.tfotp-logout-link {
    border: none;
    background: #ff3333;
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
}

.tfotp-logout-link:hover { background: #dd0000; color: #fff; }

/* Copy Code Button */
.tfotp-copy-code-btn, .tfotp-copy-modal-btn, .tfotp-copy-inline-btn, .tfotp-copy-reg-btn {
    border: none;
    background: #e8f4fd;
    color: #586de8;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-block;
    margin-bottom: 15px;
}

.tfotp-copy-code-btn:hover, .tfotp-copy-modal-btn:hover, .tfotp-copy-inline-btn:hover, .tfotp-copy-reg-btn:hover { background: #d0e3f7; }
.tfotp-copy-code-btn.copied, .tfotp-copy-modal-btn.copied, .tfotp-copy-inline-btn.copied, .tfotp-copy-reg-btn.copied { background: #28a745; color: #fff; }

/* Honeypot - hidden anti-spam field */
.tfotp-hp-field {
    display: none !important;
}

/* Modal */
.tfotp-modal {
    position: fixed;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: tfotpFadeIn 0.3s ease;
}

.tfotp-modal.show { display: flex; }

@keyframes tfotpFadeIn { from { opacity: 0; } to { opacity: 1; } }

.tfotp-modal-inner {
    background: #fff;
    padding: 30px;
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.tfotp-close {
    position: absolute;
    top: 15px; right: 15px;
    cursor: pointer;
    font-size: 24px;
    border: none;
    background: none;
    color: #666;
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tfotp-close:hover { color: #333; }

/* Titles */
.tfotp-badge {
    background: #eef2ff;
    color: #586de8;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.tfotp-title { color: #1a1a1a; font-size: 22px; font-weight: 600; margin: 10px 0 5px; }
.tfotp-subtitle { font-size: 14px; color: #666; margin-bottom: 20px; }

/* Form Fields */
.tfotp-field { margin-bottom: 16px; }
.tfotp-field label { display: block; font-size: 14px; color: #333; margin-bottom: 6px; font-weight: 500; }

.tfotp-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.tfotp-input:focus { outline: none; border-color: #586de8; }
.tfotp-required { color: #ff3333; margin-left: 4px; }

/* Buttons */
.tfotp-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.tfotp-btn-primary { background: #586de8; color: #fff; }
.tfotp-btn-primary:hover { background: #3e53d2; }
.tfotp-btn-primary:disabled { background: #ccc; cursor: not-allowed; }

/* Loader */
.tfotp-loader {
    width: 20px; height: 20px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: tfotpSpin 0.8s linear infinite;
}

@keyframes tfotpSpin { to { transform: rotate(360deg); } }

/* OTP Input Boxes */
.tfotp-otp-boxes { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }

.tfotp-otp-box {
    width: 48px; height: 52px;
    text-align: center;
    font-size: 24px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.tfotp-otp-box:focus { outline: none; border-color: #586de8; }

/* Timer */
.tfotp-timer { text-align: center; font-size: 14px; color: #666; margin: 10px 0; }
.tfotp-timer-warning { color: #ff6600; }

/* Status Messages */
.tfotp-status {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
}

.tfotp-status.success { color: #28a745; background: #e8f5e9; }
.tfotp-status.error { color: #dc3545; background: #ffe8e8; }

/* Link for register */
.tfotp-register-link { color: #586de8; font-weight: 600; text-decoration: underline; cursor: pointer; }
.tfotp-register-link:hover { color: #3e53d2; }

/* Link Button */
.tfotp-link-btn {
    background: none;
    border: none;
    color: #586de8;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
}

.tfotp-link-btn:hover { color: #3e53d2; }

/* Inline Form */
.tfotp-form-wrap {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 420px;
    margin: 0 auto;
}

.tfotp-form-wrap h3 { margin-top: 0; margin-bottom: 20px; }
#tfotp-login-box { max-width: 420px; margin: 0 auto; }

/* Footer */
.tfotp-footer { margin-top: 16px; text-align: center; color: #999; font-size: 12px; }

/* Registration Status */
.tfotp-reg-status { text-align: center; font-size: 14px; margin-top: 10px; padding: 10px; border-radius: 6px; }

.tfotp-reg-email {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}

.tfotp-reg-email:focus { outline: none; border-color: #586de8; }

/* Responsive */
@media (max-width: 480px) {
    .tfotp-modal-inner { padding: 20px; margin: 15px; }
    .tfotp-otp-box { width: 40px; height: 44px; font-size: 20px; }
}

/* Hint text for login/register */
.tfotp-hint {
    margin-top: 15px;
    font-size: 12px;
    color: #999;
    text-align: center;
}
