/**
 * WooCommerce OTP Login - Clean Minimalist UI Stylesheet
 */

.wcotp-auth-card svg {
    max-width: 18px !important;
    max-height: 18px !important;
    width: 18px !important;
    height: 18px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 0 !important;
}

.woocommerce #customer_login,
.woocommerce .u-columns.col2-set,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.woocommerce-form-login,
.woocommerce form.woocommerce-form-register,
.woocommerce .u-column1,
.woocommerce .u-column2 {
    display: none !important;
}

/* Card Container */
.wcotp-auth-card {
    max-width: 400px !important;
    width: 92% !important;
    margin: 30px auto !important;
    padding: 36px 30px 32px !important;
    background: #ffffff !important;
    border: 1px solid #e8ecf1 !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(11, 18, 32, 0.08) !important;
    text-align: left !important;
    box-sizing: border-box !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    position: relative !important;
    overflow: hidden !important;
}

.wcotp-auth-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #3b6cf5, #25d366, #0f172a) !important;
}

.wcotp-auth-card * {
    box-sizing: border-box !important;
}

/* Header */
.wcotp-card-header {
    text-align: center !important;
    margin-bottom: 24px !important;
}
.wcotp-card-title {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: #0b1220 !important;
    text-transform: none !important;
    letter-spacing: -0.03em !important;
    margin: 0 0 6px 0 !important;
}
.wcotp-card-subtitle {
    font-size: 13.5px !important;
    color: #6b7a8c !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Tabs */
.wcotp-tab-bar {
    display: flex !important;
    gap: 6px !important;
    background: #f4f6fb !important;
    padding: 4px !important;
    border-radius: 12px !important;
    margin-bottom: 24px !important;
    border: 1px solid #e8ecf1 !important;
}
.wcotp-tab-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 9px 0 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #9aa5b3 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.wcotp-tab-btn.active {
    background: #ffffff !important;
    color: #0b1220 !important;
    box-shadow: 0 1px 3px rgba(11,18,32,0.08) !important;
}

/* Fields */
.wcotp-field-row {
    margin-bottom: 16px !important;
    text-align: left !important;
}
.wcotp-field-label {
    display: block !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #6b7a8c !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 7px !important;
}

.wcotp-input-box {
    display: flex !important;
    align-items: center !important;
    background: #fafbfc !important;
    border: 1.5px solid #e8ecf1 !important;
    border-radius: 12px !important;
    padding: 0 14px !important;
    height: 48px !important;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
}
.wcotp-input-box:focus-within {
    border-color: #3b6cf5 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(59, 108, 245, 0.08) !important;
}
.wcotp-country-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #6b7a8c !important;
    padding-right: 12px !important;
    margin-right: 12px !important;
    border-right: 1.5px solid #e8ecf1 !important;
    user-select: none !important;
    flex-shrink: 0 !important;
}
.wcotp-input {
    flex: 1 !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: #0b1220 !important;
    padding: 0 !important;
    box-shadow: none !important;
    letter-spacing: 0.3px !important;
}
.wcotp-input::placeholder {
    color: #9aa5b3 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-transform: none !important;
}

/* OTP Channel Selector Grid */
.wcotp-otp-options {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
}
.wcotp-otp-opt-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 11px 12px !important;
    border-radius: 12px !important;
    border: 1.5px solid #e8ecf1 !important;
    background: #fafbfc !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #6b7a8c !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
}
.wcotp-otp-opt-btn:hover {
    border-color: #3b6cf5 !important;
    color: #3b6cf5 !important;
    background: #f0f4ff !important;
}
.wcotp-otp-opt-btn.whatsapp:hover {
    border-color: #25d366 !important;
    color: #25d366 !important;
    background: #e8f6ed !important;
}
.wcotp-otp-opt-btn.selected {
    border-color: #3b6cf5 !important;
    color: #3b6cf5 !important;
    background: #f0f4ff !important;
    box-shadow: 0 2px 8px rgba(59, 108, 245, 0.08) !important;
}
.wcotp-otp-opt-btn.whatsapp.selected {
    border-color: #25d366 !important;
    color: #25d366 !important;
    background: #e8f6ed !important;
}

/* Main Action Button */
.wcotp-btn-action {
    width: 100% !important;
    height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border: none !important;
    border-radius: 25px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    background: linear-gradient(135deg, #3b6cf5, #4f7cf7) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(59, 108, 245, 0.25) !important;
}
.wcotp-btn-action:hover:not(:disabled) {
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 30px rgba(59, 108, 245, 0.32) !important;
}
.wcotp-btn-action:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

/* Mini Row for Signup */
.wcotp-mini-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
}
.wcotp-mini-row .wcotp-input {
    padding: 0 12px !important;
    font-size: 13.5px !important;
}
.wcotp-mini-row .wcotp-input-box {
    padding: 0 !important;
}

/* Step 2: 6-Digit OTP */
.wcotp-otp-six-box {
    width: 100% !important;
    height: 52px !important;
    background: #fafbfc !important;
    border: 2px solid #e8ecf1 !important;
    border-radius: 12px !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-align: center !important;
    letter-spacing: 12px !important;
    color: #0b1220 !important;
    margin-bottom: 16px !important;
    outline: none !important;
}
.wcotp-otp-six-box:focus {
    border-color: #3b6cf5 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(59, 108, 245, 0.08) !important;
}

/* Action links */
.wcotp-otp-actions {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 14px !important;
    font-size: 12.5px !important;
}
.wcotp-link-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #3b6cf5 !important;
    cursor: pointer !important;
}
.wcotp-link-btn:disabled {
    color: #9aa5b3 !important;
    cursor: not-allowed !important;
}

/* Divider & Switch link */
.wcotp-divider {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 22px 0 18px !important;
    color: #9aa5b3 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
}
.wcotp-divider::before, .wcotp-divider::after {
    content: '' !important;
    flex: 1 !important;
    height: 1px !important;
    background: #e8ecf1 !important;
}

.wcotp-alt-link {
    text-align: center !important;
    font-size: 13px !important;
    color: #6b7a8c !important;
}
.wcotp-alt-link a {
    color: #3b6cf5 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s !important;
}
.wcotp-alt-link a:hover {
    color: #2e55d9 !important;
    text-decoration: underline !important;
}

/* Notices */
.wcotp-card-notice {
    padding: 10px 14px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    margin-bottom: 16px !important;
    display: none !important;
    text-align: left !important;
    line-height: 1.4 !important;
}
.wcotp-notice-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}
.wcotp-notice-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
}

.wcotp-hidden {
    display: none !important;
}

.wcotp-spin-icon {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 50% !important;
    border-top-color: #ffffff !important;
    animation: wcotp-spin 0.8s linear infinite !important;
}
@keyframes wcotp-spin {
    to { transform: rotate(360deg); }
}
