/**
 * Bayton Luxury OLED OTP Styling (SMS-Only Centered Card)
 */

body.bayton-otp-only-login .woocommerce-form-login,
body.bayton-otp-only-login .woocommerce > h2,
body.bayton-otp-only-login .wd-login-title,
body.bayton-otp-only-login .u-columns#customer_login,
body.bayton-otp-only-login .wd-login-register-tabs,
body.bayton-otp-only-login .bayton-login-divider {
    display: none !important;
}

.bayton-otp-box {
    max-width: 460px;
    margin: 32px auto;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 28px 24px;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
    color: #f8fafc;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.bayton-otp-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00c5ff, #3b82f6, #00c5ff);
}

.bayton-otp-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}

.bayton-otp-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bayton-otp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(0, 197, 255, 0.12);
    color: #00c5ff;
}

.bayton-otp-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

.bayton-otp-subtitle {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #94a3b8;
}

.bayton-form-group {
    margin-bottom: 16px;
}

.bayton-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.bayton-input-prefix-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.bayton-input-prefix-wrap input[type="tel"],
.bayton-email-input {
    width: 100% !important;
    background: #090d16 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
}

.bayton-input-prefix-wrap input[type="tel"] {
    padding-left: 75px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
}

.bayton-input-prefix-wrap input[type="tel"]:focus,
.bayton-email-input:focus {
    border-color: #00c5ff !important;
    box-shadow: 0 0 0 3px rgba(0, 197, 255, 0.25) !important;
    outline: none !important;
}

.bayton-phone-flag {
    position: absolute;
    left: 12px;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
    direction: ltr;
    pointer-events: none;
}

.bayton-code-input {
    width: 100% !important;
    background: #090d16 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #00c5ff !important;
    border-radius: 12px !important;
    padding: 14px !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    text-align: center;
    letter-spacing: 8px;
    transition: all 0.2s ease;
}

.bayton-code-input:focus {
    border-color: #00c5ff !important;
    box-shadow: 0 0 0 3px rgba(0, 197, 255, 0.25) !important;
    outline: none !important;
}

.bayton-otp-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bayton-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #00c5ff, #0284c7) !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 13px 20px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 197, 255, 0.3);
}

.bayton-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 197, 255, 0.45);
}

.bayton-btn-primary:active {
    transform: translateY(0);
}

.bayton-link-btn {
    background: none;
    border: none;
    color: #00c5ff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.bayton-link-btn:hover {
    color: #38bdf8;
}

.bayton-resend-wrap {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

.bayton-resend-wrap strong {
    color: #00c5ff;
}

.bayton-otp-alert {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.bayton-otp-alert.success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.bayton-otp-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.bayton-spinner {
    display: none;
    width: 18px;
    height: 18px;
    animation: bayton-spin 0.8s linear infinite;
    stroke: currentColor;
}

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