/* 
 * Aha Theme - My Account & Login Styles
 * Styles specific to WooCommerce my account and login pages
 * Loaded only on my account pages for optimization
 */

/* ==========================================================================
   WooCommerce My Account Login Styles
   ========================================================================== */

.woocommerce-account-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.woocommerce-login-form-container,
.woocommerce-register-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .woocommerce-account-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .woocommerce-login-form-container,
    .woocommerce-register-form-container {
        margin-bottom: 0;
    }
}

.woocommerce-login-heading {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.woocommerce-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.woocommerce-form .input-text {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce-form .input-text:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.woocommerce-form-row {
    margin-bottom: 1.5rem;
    position: relative;
}

.woocommerce-form-row--wide {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 2.5rem;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #374151;
}

.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
    background: #1f2937;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover {
    background: #374151;
}

.woocommerce-LostPassword {
    margin-top: 1rem;
    text-align: center;
}

.woocommerce-LostPassword a {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.875rem;
}

.woocommerce-LostPassword a:hover {
    text-decoration: underline;
}

.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.woocommerce-form__input-checkbox {
    width: auto;
    margin: 0;
}

/* Google Login Button */
.aha-google-login-wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.aha-login-divider {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
}

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

.aha-login-divider span {
    position: relative;
    background: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.aha-google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.aha-google-login-button:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.aha-google-login-button svg {
    flex-shrink: 0;
}

.aha-google-login-note {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

/* ==========================================================================
   WooCommerce My Account Page General Styles
   ========================================================================== */

.woocommerce-account-page-wrapper {
    max-width: 1200px;
}

.woocommerce-MyAccount-navigation {
    background: white;
    padding: 0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

/* Vertical menu: override global nav ul li { display: inline-block } from main.css */
.woocommerce-MyAccount-navigation ul li {
    display: block !important;
    border-bottom: 1px solid #e5e7eb;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.woocommerce-MyAccount-content {
    background: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .woocommerce-account-page-wrapper {
        display: grid;
        grid-template-columns: 250px 1fr;
        gap: 2rem;
    }
    
    .woocommerce-MyAccount-navigation {
        margin-bottom: 0;
    }
}

