/**
 * TechMall WooCommerce Auth Tabs Styles
 * Tabbed Login/Register Interface
 */

/* Main Container */
.techmall-auth-tabs {
    max-width: 500px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Tab Navigation */
.techmall-tab-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.techmall-tab-btn {
    flex: 1;
    padding: 18px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.techmall-tab-btn:hover {
    color: #495057;
    background: rgba(0, 0, 0, 0.02);
}

.techmall-tab-btn.active {
    color: #0073aa;
    background: #ffffff;
}

.techmall-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    border-radius: 3px 3px 0 0;
}

/* Tab Content */
.techmall-tab-content {
    padding: 40px;
}

.techmall-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.techmall-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Headers */
.techmall-tab-pane h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.techmall-form-description {
    margin: 0 0 30px 0;
    color: #6c757d;
    font-size: 15px;
    line-height: 1.5;
}

/* Form Styling */
.techmall-tab-pane .woocommerce-form {
    margin-top: 20px;
}

.techmall-tab-pane .form-row {
    margin-bottom: 20px;
}

.techmall-tab-pane label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.techmall-tab-pane .input-text {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.techmall-tab-pane .input-text:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.techmall-tab-pane .required {
    color: #dc3545;
    font-weight: 700;
}

/* Remember Me Checkbox */
.techmall-tab-pane .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #495057;
}

.techmall-tab-pane .woocommerce-form__input-checkbox {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: #0073aa;
}

/* Buttons */
.techmall-tab-pane .woocommerce-button {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.techmall-tab-pane .woocommerce-button:hover {
    background: linear-gradient(135deg, #005a87, #004d6b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.techmall-tab-pane .woocommerce-button:active {
    transform: translateY(0);
}

/* Lost Password Link */
.techmall-tab-pane .lost_password {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.techmall-tab-pane .lost_password a {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.techmall-tab-pane .lost_password a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Error and Success Messages */
.techmall-tab-pane .woocommerce-error,
.techmall-tab-pane .woocommerce-message,
.techmall-tab-pane .woocommerce-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 4px solid #0073aa;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.techmall-tab-pane .woocommerce-error {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.techmall-tab-pane .woocommerce-message {
    border-left-color: #28a745;
    background: #d4edda;
    color: #155724;
}

/* Responsive Design */
@media (max-width: 768px) {
    .techmall-auth-tabs {
        margin: 20px;
        border-radius: 8px;
    }
    
    .techmall-tab-content {
        padding: 30px 20px;
    }
    
    .techmall-tab-btn {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .techmall-tab-pane h2 {
        font-size: 24px;
    }
    
    .techmall-tab-pane .input-text {
        padding: 12px 16px;
        font-size: 16px;
    }
    
    .techmall-tab-pane .woocommerce-button {
        padding: 14px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .techmall-auth-tabs {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .techmall-tab-content {
        padding: 20px 16px;
    }
    
    .techmall-tab-pane h2 {
        font-size: 22px;
    }
    
    .techmall-form-description {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* Password Strength Indicator */
.password-strength-indicator {
    margin-top: 8px;
    margin-bottom: 20px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark mode support for modern browsers */
@media (prefers-color-scheme: dark) {
    .techmall-auth-tabs {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .techmall-tab-nav {
        background: #34495e;
        border-bottom-color: #495057;
    }
    
    .techmall-tab-btn {
        color: #bdc3c7;
    }
    
    .techmall-tab-btn.active {
        color: #3498db;
        background: #2c3e50;
    }
    
    .techmall-tab-pane h2 {
        color: #ecf0f1;
    }
    
    .techmall-form-description {
        color: #bdc3c7;
    }
    
    .techmall-tab-pane label {
        color: #ecf0f1;
    }
    
    .techmall-tab-pane .input-text {
        background: #34495e;
        border-color: #495057;
        color: #ecf0f1;
    }
    
    .techmall-tab-pane .woocommerce-form-login__rememberme {
        color: #bdc3c7;
    }
    
    .strength-bar {
        background: #495057;
    }
}
