/**
 * WooCommerce Custom Login Styles
 */

/* Import Inter and Lato fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lato:wght@700&display=swap');

/* Reset styles for login/register containers */
.wcl-login-container *,
.wcl-register-container * {
    box-sizing: border-box;
}

.wcl-login-container h1,
.wcl-register-container h1,
.wcl-login-container h2,
.wcl-register-container h2 {
    margin: 0;
    padding: 0;
    font-weight: inherit;
}

/* Container Styles */
.wcl-login-container,
.wcl-register-container {
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: #ffffff;
}

.wcl-dashboard-container {
    width: 100%;
    margin: 0;
    padding: 60px 96px;
    min-height: 100vh;
    background: #ffffff;
}

.wcl-dashboard-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Page Wrapper - Two Column Layout */
.wcl-page-wrapper {
    display: flex;
    gap: 0;
    align-items: stretch;
    width: 100%;
    min-height: 100vh;
}

.wcl-content-side {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 146px 96px 60px 96px;
    background: #ffffff;
    position: relative;
}

.wcl-image-side {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #1a237e;
    position: relative;
    overflow: hidden;
}

.wcl-page-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Promotional Content */
.wcl-promo-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: transparent !important;
    padding: 0;
    margin: 0;
}

.wcl-promo-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    background: transparent !important;
    padding: 0;
    margin: 0;
}

.wcl-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent !important;
    filter: none !important;
    -webkit-filter: none !important;
}

.wcl-promo-headline {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.wcl-promo-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

/* Box Styles */
.wcl-login-box,
.wcl-register-box {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    width: 100%;
    max-width: 528px;
}

/* Logo Styles */
.wcl-logo {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    gap: 10px;
    width: 255.71px;
    height: 50px;
    margin-bottom: 54px;
}

.wcl-logo-link {
    display: inline-block;
    text-decoration: none;
    border: none;
    outline: none;
}

.wcl-logo-link:hover {
    opacity: 0.9;
}

.wcl-logo-link:focus {
    outline: 2px solid #113FA2;
    outline-offset: 2px;
    border-radius: 4px;
}

.wcl-logo-img {
    width: auto;
    height: 50px;
    display: block;
    max-width: 100%;
}

/* Sign In Title */
.wcl-signin-title {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 48px !important;
    line-height: 100% !important;
    color: #171923 !important;
    margin: 0 0 34px 0 !important;
    padding: 0 !important;
}

/* Account Prompt */
.wcl-account-prompt {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 18px !important;
    line-height: 150% !important;
    color: #718096 !important;
    margin-bottom: 73px !important;
}

.wcl-create-link {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: #113FA2;
    text-decoration: none;
    margin-left: 5px;
}

.wcl-create-link:hover {
    text-decoration: underline;
    color: #0d2f7a;
}

/* Form Styles */
.wcl-form {
    width: 100% !important;
    max-width: 100% !important;
}

.wcl-form-group {
    margin-bottom: 40px;
    width: 100% !important;
    max-width: 100% !important;
}

.wcl-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wcl-form-group label {
    display: block !important;
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 20px !important;
    letter-spacing: -0.154px !important;
    color: #718096 !important;
    margin-bottom: 10px !important;
}

.wcl-form-group input[type="text"],
.wcl-form-group input[type="email"],
.wcl-form-group input[type="password"],
.wcl-form-input {
    width: 100% !important;
    height: 55px !important;
    padding: 10px 12px !important;
    border: 1px solid #CBD5E0 !important;
    border-radius: 12px !important;
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 20px !important;
    letter-spacing: -0.154px !important;
    color: #4A5568 !important;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    background: #F7FAFC !important;
    box-shadow: inset 0px 2px 0px rgba(231, 235, 238, 0.2) !important;
    margin: 0 !important;
}

.wcl-form-group input::placeholder {
    color: #4A5568 !important;
    opacity: 1;
}

.wcl-form-group input:focus {
    outline: none !important;
    border-color: #113FA2 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(17, 63, 162, 0.1) !important;
}

/* Password Group with Toggle */
.wcl-password-group {
    position: relative;
}

.wcl-password-wrapper {
    position: relative;
}

.wcl-password-wrapper input {
    padding-right: 50px;
}

.wcl-password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    color: #113FA2 !important;
}

.wcl-password-toggle:hover {
    color: #0d2f7a !important;
}

.wcl-password-toggle svg {
    display: block;
    width: 24px;
    height: 24px;
}

.wcl-password-toggle svg path {
    fill: currentColor;
}

.wcl-required {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.154px;
    color: #67728A;
}

.wcl-help-text {
    display: block;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.154px;
    color: #67728A;
    margin-top: 8px;
}

/* Form Options */
.wcl-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.wcl-remember-me {
    display: flex;
    align-items: center;
}

.wcl-remember-me label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.154px;
    color: #4A5568;
}

.wcl-remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #113FA2;
}

.wcl-forgot-link {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    line-height: 20px !important;
    letter-spacing: -0.154px !important;
    color: #113FA2 !important;
    text-decoration: none !important;
}

.wcl-forgot-link:hover {
    color: #0d2f7a !important;
    text-decoration: underline !important;
}

/* Button Styles */
.wcl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

.wcl-btn-primary {
    background: linear-gradient(0deg, #113FA2 0%, #061B5D 100%) !important;
    color: #F7FAFC !important;
    height: 60px !important;
    border-radius: 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 28px !important;
    padding: 0 24px !important;
    border: none !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: 100% !important;
}

.wcl-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 63, 162, 0.3) !important;
}

.wcl-btn-google {
    background: #ffffff !important;
    color: #67728A !important;
    border: 1px solid #CBD5E0 !important;
    border-radius: 30px !important;
    height: 60px !important;
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 18px !important;
    line-height: 28px !important;
    padding: 0 24px !important;
    cursor: pointer !important;
    width: 100% !important;
    max-width: 100% !important;
}

.wcl-btn-google:hover {
    background: #F7FAFC !important;
    border-color: #A0AEC0 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.wcl-btn-google svg {
    flex-shrink: 0;
}

.wcl-btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.wcl-btn-secondary:hover {
    background: #5a6268;
}

.wcl-btn-link {
    background: transparent;
    color: #667eea;
    padding: 8px 0;
    text-decoration: none;
    font-weight: 500;
}

.wcl-btn-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.wcl-btn-small {
    padding: 6px 15px;
    font-size: 14px;
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
    white-space: nowrap;
    width: auto;
    min-width: auto;
}

.wcl-btn-small:hover {
    background: #e9ecef;
}

/* Form Footer */
.wcl-form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
}

.wcl-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.wcl-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Divider */
.wcl-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    width: 100%;
    height: 20px;
    position: relative;
}

.wcl-divider-line {
    flex: 1;
    height: 1px;
    background: #A0AEC0;
    border: none;
}

.wcl-divider-text {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    line-height: 20px !important;
    letter-spacing: -0.154px !important;
    color: #718096 !important;
    padding: 0 8px !important;
}

/* Message Styles */
.wcl-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
}

.wcl-message.show {
    display: block;
}

.wcl-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcl-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Styles */
.wcl-dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid #E0E0E0;
}

.wcl-dashboard-header-top {
    display: flex;
    align-items: center;
    width: 100%;
}

.wcl-dashboard-header-bottom {
    display: flex;
    align-items: center;
    width: 100%;
}

.wcl-dashboard-title {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 700 !important;
    font-size: 48px !important;
    line-height: 100% !important;
    color: #171923 !important;
    margin: 0 !important;
}

.wcl-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.wcl-dashboard-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wcl-dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #CBD5E0;
}

.wcl-card-title {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 28px !important;
    color: #171923 !important;
    margin: 0 0 24px 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcl-icon {
    font-size: 24px;
}

.wcl-card-content {
    font-family: 'Inter', sans-serif !important;
    color: #4A5568 !important;
}

/* Info Row */
.wcl-info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #E0E0E0;
}

.wcl-info-row:last-child {
    border-bottom: none;
}

.wcl-info-label {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #718096 !important;
}

.wcl-info-value {
    font-family: 'Inter', sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    color: #171923 !important;
}

/* Orders List */
.wcl-orders-list {
    margin-bottom: 15px;
}

.wcl-order-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 15px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.wcl-order-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
}

.wcl-order-info strong {
    color: #333;
    font-size: 15px;
}

.wcl-order-date {
    font-size: 12px;
    color: #888;
}

.wcl-order-status {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.wcl-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wcl-status-processing {
    background: #fff3cd;
    color: #856404;
}

.wcl-status-completed {
    background: #d4edda;
    color: #155724;
}

.wcl-status-pending {
    background: #cfe2ff;
    color: #084298;
}

.wcl-status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.wcl-order-total {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Address Section */
.wcl-address-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.wcl-address-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.wcl-address-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.wcl-address-section p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Quick Links */
.wcl-quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wcl-quick-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
}

.wcl-quick-link:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.wcl-link-icon {
    font-size: 20px;
}

.wcl-cart-count {
    margin-left: auto;
    background: #667eea;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Empty State */
.wcl-empty-state {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* Loading State */
.wcl-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.wcl-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .wcl-content-side,
    .wcl-image-side {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .wcl-login-container,
    .wcl-register-container {
        padding: 0;
    }
    
    .wcl-dashboard-container {
        padding: 40px 30px;
        min-height: auto;
    }
    
    .wcl-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .wcl-dashboard-title {
        font-size: 36px !important;
    }
    
    .wcl-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wcl-dashboard-card {
        padding: 24px;
    }
    
    .wcl-page-wrapper {
        flex-direction: column;
        gap: 0;
        min-height: auto;
    }
    
    .wcl-content-side {
        flex: 1;
        max-width: 100%;
        width: 100%;
        padding: 60px 30px;
        order: 1;
    }
    
    .wcl-image-side {
        flex: 1;
        max-width: 100%;
        width: 100%;
        padding: 0;
        min-height: 400px;
        order: 2;
    }
    
    .wcl-logo {
        width: 100%;
        max-width: 255.71px;
        margin-bottom: 30px;
    }
    
    .wcl-signin-title {
        font-size: 36px;
    }
    
    .wcl-account-prompt {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .wcl-login-box,
    .wcl-register-box {
        max-width: 100%;
    }
    
    .wcl-promo-headline {
        font-size: 24px;
    }
    
    .wcl-login-box,
    .wcl-register-box {
        max-width: 100%;
    }
    
    .wcl-form-row {
        grid-template-columns: 1fr;
    }
    
    .wcl-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .wcl-dashboard-header-top,
    .wcl-dashboard-header-bottom {
        width: 100%;
    }
    
    .wcl-dashboard-title {
        font-size: 24px;
    }
    
    .wcl-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .wcl-order-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

