/**
 * Techmall Authentication Forms Styling
 * Professional blue and yellow color scheme for login/register forms
 *
 * @package Techmall\Auth
 * @version 1.0.0
 * @author  Techmall Web Solutions
 */

/* Main Authentication Container */
.techmall-auth-tabs {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(4, 103, 207, 0.1), 0 8px 16px rgba(4, 103, 207, 0.06);
    padding: 40px;
    margin: 40px auto;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.techmall-auth-tabs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0467cf 0%, #f4e314 50%, #0467cf 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Tab Navigation */
.techmall-tab-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0;
    position: relative;
}

.techmall-tab-nav::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    background: #0467cf;
    transition: all 0.3s ease;
    z-index: 1;
}

.techmall-tab-btn {
    background: transparent;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px 12px 0 0;
    position: relative;
    overflow: hidden;
}

.techmall-tab-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #0467cf;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.techmall-tab-btn:hover {
    color: #0467cf;
    background: rgba(4, 103, 207, 0.05);
}

.techmall-tab-btn.active {
    color: #0467cf;
    background: linear-gradient(135deg, rgba(4, 103, 207, 0.1) 0%, rgba(244, 227, 20, 0.1) 100%);
    font-weight: 700;
}

.techmall-tab-btn.active::before {
    width: 100%;
}

/* Tab Content */
.techmall-tab-content {
    position: relative;
}

.techmall-tab-pane {
    display: none;
    animation: fadeInUp 0.5s ease;
}

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

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

/* Form Styling */
.techmall-tab-pane form {
    max-width: 400px;
    margin: 0 auto;
}

/* Form Labels */
.techmall-tab-pane .woocommerce-form-row label {
    color: #343a40;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.techmall-tab-pane .woocommerce-form-row .required {
    color: #f4e314;
    font-weight: 700;
    margin-left: 4px;
}

/* Form Inputs */
.techmall-tab-pane .woocommerce-Input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.techmall-tab-pane .woocommerce-Input:focus {
    outline: none;
    border-color: #0467cf;
    box-shadow: 0 0 0 4px rgba(4, 103, 207, 0.1), 0 8px 24px rgba(4, 103, 207, 0.15);
    transform: translateY(-2px);
}

.techmall-tab-pane .woocommerce-Input:hover {
    border-color: #0467cf;
}

/* Checkbox Styling */
.techmall-tab-pane .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
}

.techmall-tab-pane .woocommerce-form__input-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #0467cf;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.techmall-tab-pane .woocommerce-form__input-checkbox:checked {
    background: #0467cf;
    border-color: #0467cf;
}

.techmall-tab-pane .woocommerce-form__input-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

/* Submit Buttons */
.techmall-tab-pane .woocommerce-form-login__submit,
.techmall-tab-pane .woocommerce-form-register__submit {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #0467cf 0%, #034fb5 100%);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(4, 103, 207, 0.3);
}

.techmall-tab-pane .woocommerce-form-login__submit::before,
.techmall-tab-pane .woocommerce-form-register__submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(244, 227, 20, 0.3), transparent);
    transition: left 0.5s ease;
}

.techmall-tab-pane .woocommerce-form-login__submit:hover,
.techmall-tab-pane .woocommerce-form-register__submit:hover {
    background: linear-gradient(135deg, #034fb5 0%, #0238a3 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(4, 103, 207, 0.4);
}

.techmall-tab-pane .woocommerce-form-login__submit:hover::before,
.techmall-tab-pane .woocommerce-form-register__submit:hover::before {
    left: 100%;
}

.techmall-tab-pane .woocommerce-form-login__submit:active,
.techmall-tab-pane .woocommerce-form-register__submit:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(4, 103, 207, 0.3);
}

/* Lost Password Link */
.techmall-tab-pane .woocommerce-LostPassword {
    text-align: center;
    margin-top: 25px;
}

.techmall-tab-pane .woocommerce-LostPassword a {
    color: #0467cf;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
}

.techmall-tab-pane .woocommerce-LostPassword a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #f4e314;
    transition: all 0.3s ease;
}

.techmall-tab-pane .woocommerce-LostPassword a:hover {
    color: #f4e314;
}

.techmall-tab-pane .woocommerce-LostPassword a:hover::after {
    width: 100%;
}

/* Error and Success Messages */
.techmall-tab-pane .woocommerce-error,
.techmall-tab-pane .woocommerce-message,
.techmall-tab-pane .woocommerce-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #0467cf;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.techmall-tab-pane .woocommerce-error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.techmall-tab-pane .woocommerce-message {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #ffffff 100%);
}

.techmall-tab-pane .woocommerce-info {
    border-left-color: #f4e314;
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

/* Loading State */
.techmall-tab-pane.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .techmall-auth-tabs {
        padding: 25px;
        margin: 25px auto;
        max-width: 450px;
        border-radius: 15px;
    }
    
    .techmall-tab-nav {
        gap: 10px;
        margin-bottom: 25px;
    }
    
    .techmall-tab-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .techmall-tab-pane .woocommerce-Input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .techmall-tab-pane .woocommerce-form-login__submit,
    .techmall-tab-pane .woocommerce-form-register__submit {
        padding: 15px 25px;
        font-size: 14px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    .techmall-auth-tabs {
        padding: 20px;
        margin: 20px auto;
        max-width: 350px;
        border-radius: 12px;
    }
    
    .techmall-tab-nav {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 20px;
        border-bottom: none;
    }
    
    .techmall-tab-btn {
        padding: 15px;
        font-size: 14px;
        border-radius: 8px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
    }
    
    .techmall-tab-btn.active {
        background: linear-gradient(135deg, #0467cf 0%, #f4e314 100%);
        color: #ffffff;
        border-color: #0467cf;
    }
    
    .techmall-tab-pane .woocommerce-Input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .techmall-tab-pane .woocommerce-form-login__submit,
    .techmall-tab-pane .woocommerce-form-register__submit {
        padding: 12px 20px;
        font-size: 13px;
    }
}

/* Accessibility */
.techmall-tab-btn:focus,
.techmall-tab-pane .woocommerce-Input:focus,
.techmall-tab-pane .woocommerce-form-login__submit:focus,
.techmall-tab-pane .woocommerce-form-register__submit:focus {
    outline: 2px solid #f4e314;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .techmall-auth-tabs {
        border: 2px solid #0467cf;
    }
    
    .techmall-tab-pane .woocommerce-Input {
        border-width: 3px;
    }
    
    .techmall-tab-pane .woocommerce-form-login__submit,
    .techmall-tab-pane .woocommerce-form-register__submit {
        border: 2px solid #0467cf;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .techmall-tab-btn,
    .techmall-tab-pane .woocommerce-Input,
    .techmall-tab-pane .woocommerce-form-login__submit,
    .techmall-tab-pane .woocommerce-form-register__submit {
        transition: none;
    }
    
    .techmall-tab-pane {
        animation: none;
    }
    
    .techmall-auth-tabs::before {
        animation: none;
    }
}

/* Checkbox Enhanced Styling */
.techmall-tab-pane .woocommerce-form__label-for-checkbox.checked {
    color: #0467cf;
    font-weight: 600;
}

.techmall-tab-pane .woocommerce-form__label-for-checkbox.checked .woocommerce-form__input-checkbox {
    background: #0467cf;
    border-color: #0467cf;
}

/* Tab Indicator */
.techmall-tab-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 3px;
    background: #0467cf;
    transition: all 0.3s ease;
    border-radius: 2px;
}
