/* WooCommerce Custom Auth Styles */

.wc-custom-auth-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.wc-custom-login-form,
.wc-custom-register-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wc-custom-login-form h2,
.wc-custom-register-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    font-size: 24px;
}

/* Tabs */
.wc-custom-auth-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-tabs-nav {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.auth-tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.auth-tab-btn:hover {
    background: #e5e5e5;
    color: #333;
}

.auth-tab-btn.active {
    background: #fff;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
}

.auth-tabs-content {
    padding: 30px;
}

.auth-tab-panel {
    display: none;
}

.auth-tab-panel.active {
    display: block;
}

/* Form Rows */
.form-row {
    margin-bottom: 20px;
    position: relative;
}

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

.form-row .required {
    color: #d9534f;
}

.form-row .input-text {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-row .input-text:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Inline Label (Remember Me) */
.inline-label {
    display: flex;
    align-items: center;
    font-weight: normal !important;
    cursor: pointer;
}

.inline-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 38px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #0073aa;
}

.password-toggle .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Password Strength Meter */
.password-strength {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
}

.password-strength.weak {
    color: #d9534f;
}

.password-strength.medium {
    color: #f0ad4e;
}

.password-strength.strong {
    color: #5cb85c;
}

/* Button */
.form-row .button {
    width: 100%;
    padding: 14px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-row .button:hover {
    background: #005a87;
}

.form-row .button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Lost Password */
.lost-password {
    text-align: center;
    margin-top: 15px;
}

.lost-password a,
.show-login-form {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.lost-password a:hover,
.show-login-form:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Messages */
.wc-auth-messages {
    margin-bottom: 20px;
    display: none;
}

.wc-auth-messages.show {
    display: block;
}

.wc-auth-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.wc-auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wc-auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wc-auth-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading State */
.form-loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Forgot Password Form */
#wc-custom-forgot-password-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.show-login-form {
    display: inline-block;
    margin-left: 15px;
}

/* Responsive */
@media (max-width: 600px) {
    .wc-custom-auth-wrapper {
        padding: 10px;
    }
    
    .wc-custom-login-form,
    .wc-custom-register-form,
    .auth-tabs-content {
        padding: 20px;
    }
    
    .auth-tab-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .form-row .button {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Social Login Styles */
.social-login-section {
    margin-top: 25px;
}

.social-login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.social-login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
}

.social-login-divider span {
    background: #fff;
    padding: 0 15px;
    position: relative;
    color: #666;
    font-size: 14px;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-login-btn {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-login-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-login-btn:active {
    transform: translateY(0);
}

.social-login-btn svg {
    flex-shrink: 0;
}

.social-login-btn.google-login:hover {
    background: #f8f9fa;
    border-color: #4285F4;
}

.social-login-btn.facebook-login:hover {
    background: #f0f4ff;
    border-color: #1877F2;
}

.social-login-btn.twitter-login:hover {
    background: #f0f8ff;
    border-color: #1DA1F2;
}

/* Phone Number Field */
input[type="tel"] {
    letter-spacing: 0.5px;
}

/* Dynamic Menu Styles */
.wc-auth-menu-item .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

.wc-auth-menu-item a {
    display: inline-flex;
    align-items: center;
}

/* Login/Logout Button Styles */
.wc-auth-button {
    display: inline-block;
    padding: 12px 24px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.wc-auth-button:hover {
    background: #005a87;
    color: #fff;
}

.wc-auth-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
}

.wc-auth-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.wc-auth-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.wc-auth-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

.wc-auth-user-info {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.wc-auth-greeting {
    font-weight: 600;
}

/* Widget Styles */
.widget_wc_auth_login_logout {
    text-align: center;
}

.widget_wc_auth_login_logout .wc-auth-button {
    width: 100%;
    text-align: center;
    justify-content: center;
}


