/* Modern Login Form Styles - 2025 Glassmorphism Design */
.woocommerce-form-login {
    direction: rtl;
    font-family: inherit;
    max-width: 400px;
    margin: 15px auto;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

/*.woocommerce-form-login::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    height: 4px;*/
/*    background: linear-gradient(90deg, #a9020a, #d32f2f);*/
/*    border-radius: 20px 20px 0 0;*/
/*}*/

.woocommerce-form-login h3 {
    text-align: center;
    color: #1F2937;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.woocommerce-form-login .description {
    text-align: center;
    color: #6B7280;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
}

.woocommerce-form-login .description.small {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 10px;
    text-align: right;
}

.edit-mobile-link {
    text-align: center;
    margin-bottom: 20px;
}

.edit-mobile-link a {
    color: #a9020a;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.edit-mobile-link a:hover {
    color: #d32f2f;
    text-decoration: underline;
}

.woocommerce-form-row {
    margin-bottom: 20px;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
}

.woocommerce-form-row .required {
    color: #EF4444;
}

.woocommerce-Input--text {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(169, 2, 10, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 16px;
    transition: all 0.3s ease;
    direction: ltr !important; /* Force LTR for numbers */
    text-align: center;
    unicode-bidi: plaintext; /* Prevent theme RTL conversion */
    font-family: 'Courier New', monospace, sans-serif; /* Monospace for fixed English digits */
    font-variant-numeric: tabular-nums; /* Tabular numbers for consistent width */
}

.woocommerce-Input--text:focus {
    outline: none;
    border-color: #a9020a;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(169, 2, 10, 0.1);
    transform: translateY(-2px);
}

.woocommerce-form-login__submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #a9020a, #d32f2f);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.woocommerce-form-login__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(169, 2, 10, 0.3);
}

.resend-timer {
    text-align: center;
    font-size: 14px;
    color: #6B7280;
    margin-top: 10px;
}

.resend-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: #a9020a;
    border: 1px solid rgba(169, 2, 10, 0.3);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.resend-btn:hover {
    background: rgba(169, 2, 10, 0.05);
    border-color: #a9020a;
}

.woocommerce-message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    animation: slideIn 0.4s ease;
}

.woocommerce-error {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.woocommerce-info {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Success Overlay */
/*.success-overlay {*/
/*    position: fixed;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background: rgba(0, 0, 0, 0.5);*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    z-index: 9999;*/
/*    animation: fadeIn 0.3s ease;*/
/*}*/

.success-message {
    background: linear-gradient(135deg, #a9020a, #d32f2f);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.success-message h4 {
    margin: 0 0 10px 0;
    font-size: 24px;
}

.success-message p {
    margin: 0;
    font-size: 16px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive */
@media (max-width: 480px) {
    .woocommerce-form-login {
        padding: 20px 10px;
    }
    
    .woocommerce-form-login h3 {
        font-size: 20px;
    }
}

/* RTL Support */
.woocommerce-form-login {
    text-align: right;
}

.woocommerce-form-row label {
    text-align: right;
}
.terms-link {
    color: #a9020a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #d32f2f;
    text-decoration: underline;
}