/* Custom Login & Register Forms CSS - Updated with new button styling */

.custom-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #ffffff;
    background-color: #333333; /* Dark background for active tab */
    border-bottom-color: #333333;
    border-radius: 4px 4px 0 0;
}

.tab-btn:hover {
    color: #dc3545;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.custom-form-container {
    max-width: 400px;
    margin: 0 auto;
}

.custom-form {
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.form-half {
    flex: 1;
    margin-bottom: 0;
}

.form-input {
    width: 100%;
    padding: 15px;
    font-size: 14px;
    border: 1px solid #000000; /* Black border as requested */
    border-radius: 4px;
    background-color: #f5f5f5;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #dc3545;
    background-color: #ffffff;
}

.form-input::placeholder {
    color: #999;
    font-size: 14px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.forgot-password-link,
.register-link,
.login-link,
.back-to-login {
    color: #dc3545; /* Red color as requested */
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password-link:hover,
.register-link:hover,
.login-link:hover,
.back-to-login:hover {
    color: #a02834;
    text-decoration: underline;
}

.login-btn,
.register-btn,
.forgot-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #dc3545; /* Red text color (copied from original background) */
    background-color: #ffffff; /* White background */
    border: 2px solid #dc3545; /* Red border */
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2); /* Subtle red shadow */
}

.login-btn:hover,
.register-btn:hover,
.forgot-btn:hover {
    background-color: #333333; /* Dark background on hover */
    color: #ffffff; /* White text on hover */
    border-color: #333333; /* Dark border on hover */
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3); /* Enhanced shadow on hover */
}

.login-btn:disabled,
.register-btn:disabled,
.forgot-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.form-messages {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-messages.show {
    display: block;
}

/* Header Buttons - Updated with new styling and zoom effect */
.custom-login-btn,
.custom-account-btn,
.custom-logout-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff; /* White background */
    color: #dc3545; /* Red text */
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #dc3545; /* Red border */
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2); /* Subtle red shadow */
}

.custom-login-btn:hover,
.custom-account-btn:hover,
.custom-logout-btn:hover {
    background-color: #333333; /* Dark background on hover */
    color: #ffffff; /* White text on hover */
    border-color: #333333; /* Dark border on hover */
    text-decoration: none;
    transform: scale(1.05); /* Zoom effect for header buttons */
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3); /* Enhanced shadow on hover */
}

/* Menu Items */
.custom-login-menu,
.custom-account-menu,
.custom-logout-menu {
    margin-left: 10px;
}

.custom-login-menu a,
.custom-account-menu a,
.custom-logout-menu a {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ffffff; /* White background */
    color: #dc3545 !important; /* Red text */
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #dc3545; /* Red border */
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2); /* Subtle red shadow */
}

.custom-login-menu a:hover,
.custom-account-menu a:hover,
.custom-logout-menu a:hover {
    background-color: #333333; /* Dark background on hover */
    color: #ffffff !important; /* White text on hover */
    border-color: #333333; /* Dark border on hover */
    transform: scale(1.05); /* Zoom effect for menu buttons */
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3); /* Enhanced shadow on hover */
}

/* Loading State */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-loading::before {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    font-weight: bold;
    color: #dc3545;
}

/* Modal Styles for Force Auth */
.force-auth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.force-auth-wrapper .custom-form-wrapper {
    position: relative;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-form-wrapper {
        margin: 20px;
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-half {
        margin-bottom: 15px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .custom-login-btn,
    .custom-account-btn,
    .custom-logout-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Elementor Widget Styles - Updated */
.elementor-widget-custom-login-button,
.elementor-widget-custom-account-button,
.elementor-widget-custom-logout-button {
    text-align: center;
}

.elementor-widget-custom-login-button .elementor-button,
.elementor-widget-custom-account-button .elementor-button,
.elementor-widget-custom-logout-button .elementor-button {
    background-color: #ffffff; /* White background */
    color: #dc3545; /* Red text */
    border: 2px solid #dc3545; /* Red border */
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2); /* Subtle red shadow */
}

.elementor-widget-custom-login-button .elementor-button:hover,
.elementor-widget-custom-account-button .elementor-button:hover,
.elementor-widget-custom-logout-button .elementor-button:hover {
    background-color: #333333; /* Dark background on hover */
    color: #ffffff; /* White text on hover */
    border-color: #333333; /* Dark border on hover */
    transform: scale(1.05); /* Zoom effect for Elementor buttons */
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3); /* Enhanced shadow on hover */
}

/* Animation for tab switching */
.tab-pane {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tab-pane.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom checkbox styling */
.remember-me {
    position: relative;
}

.remember-me input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #fff;
    border: 1px solid #000;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #dc3545;
    font-size: 12px;
    font-weight: bold;
}

/* Social login hooks (for future integration) */
.social-login-container {
    margin: 20px 0;
    text-align: center;
}

.social-login-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
    color: #666;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.social-login-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
}

.social-login-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-login-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-login-btn:hover {
    background: #f5f5f5;
    border-color: #dc3545;
}

/* Error field highlighting */
.form-input.error {
    border-color: #dc3545;
    background-color: #fdf2f2;
}

.form-input.success {
    border-color: #28a745;
    background-color: #f2f8f2;
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    font-size: 12px;
}

.password-strength.weak {
    color: #dc3545;
}

.password-strength.medium {
    color: #ffc107;
}

.password-strength.strong {
    color: #28a745;
}