/* ============================================================
   My Account Page — Premium Redesign
   WooCommerce login / register forms for guests
   ============================================================ */

/* --- Page-level Layout (remove default padding, add gradient bg) --- */
.woocommerce-account:not(.logged-in) .main-content,
.woocommerce-account:not(.logged-in) #content {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 50%, #f0ece5 100%);
    padding-bottom: 4rem;
}

/* Hide the generic breadcrumb + page title area for a cleaner look */
.woocommerce-account:not(.logged-in) .inner-header {
    display: none;
}

/* --- Two-column wrapper --- */
.woocommerce-account .u-columns {
    display: flex;
    gap: 2rem;
    max-width: 920px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    align-items: stretch;
}

/* --- Card styling for each column --- */
.woocommerce-account .u-columns .u-column1,
.woocommerce-account .u-columns .u-column2 {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 6px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.woocommerce-account .u-columns .u-column1:hover,
.woocommerce-account .u-columns .u-column2:hover {
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        0 12px 36px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* --- Headings (Đăng nhập / Đăng ký) --- */
.woocommerce-account .u-columns h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
}

.woocommerce-account .u-columns h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e65100, #ff8a50);
    border-radius: 2px;
    margin-top: 0.75rem;
}

/* --- Form fields --- */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-form-register {
    margin: 0;
    padding: 0;
    border: none;
}

.woocommerce-account .woocommerce-form .form-row {
    margin-bottom: 1.25rem;
}

.woocommerce-account .woocommerce-form label {
    display: block;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.woocommerce-account .woocommerce-form label .required {
    color: #e65100;
}

.woocommerce-account .woocommerce-form input[type="text"],
.woocommerce-account .woocommerce-form input[type="email"],
.woocommerce-account .woocommerce-form input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.woocommerce-account .woocommerce-form input[type="text"]:focus,
.woocommerce-account .woocommerce-form input[type="email"]:focus,
.woocommerce-account .woocommerce-form input[type="password"]:focus {
    border-color: #e65100;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

.woocommerce-account .woocommerce-form input[type="text"]::placeholder,
.woocommerce-account .woocommerce-form input[type="email"]::placeholder,
.woocommerce-account .woocommerce-form input[type="password"]::placeholder {
    color: #94a3b8;
}

/* --- Remember me checkbox --- */
.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
}

.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #e65100;
    border-radius: 4px;
}

/* --- Submit button --- */
.woocommerce-account .woocommerce-form button[type="submit"],
.woocommerce-account .woocommerce-form input[type="submit"],
.woocommerce-account .woocommerce-form .woocommerce-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #e65100 0%, #ff6d00 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.25);
    letter-spacing: 0.01em;
    text-transform: none;
    margin-top: 0.5rem;
}

.woocommerce-account .woocommerce-form button[type="submit"]:hover,
.woocommerce-account .woocommerce-form input[type="submit"]:hover,
.woocommerce-account .woocommerce-form .woocommerce-button:hover {
    background: linear-gradient(135deg, #d84900 0%, #e65100 100%);
    box-shadow: 0 4px 16px rgba(230, 81, 0, 0.35);
    transform: translateY(-1px);
}

.woocommerce-account .woocommerce-form button[type="submit"]:active,
.woocommerce-account .woocommerce-form input[type="submit"]:active,
.woocommerce-account .woocommerce-form .woocommerce-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(230, 81, 0, 0.2);
}

/* --- Lost password link --- */
.woocommerce-account .woocommerce-LostPassword {
    text-align: center;
    margin-top: 1rem;
}

.woocommerce-account .woocommerce-LostPassword a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.8125rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-account .woocommerce-LostPassword a:hover {
    color: #e65100;
}

/* --- WooCommerce Notices (success/error/info) --- */
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error {
    max-width: 920px;
    margin: 1.5rem auto;
    border-radius: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    padding: 1rem 1.5rem;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message {
    background: #f0fdf4;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error li {
    list-style: none;
}

/* --- Password strength meter --- */
.woocommerce-account .woocommerce-password-strength {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    text-align: center;
}

/* --- Privacy policy text --- */
.woocommerce-account .woocommerce-privacy-policy-text {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-top: 0.75rem;
}

.woocommerce-account .woocommerce-privacy-policy-text a {
    color: #e65100;
    text-decoration: none;
}

/* --- Separator between login/register (visual divider) --- */
.woocommerce-account .u-columns .u-column1 {
    position: relative;
}

.woocommerce-account .u-columns .u-column1::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 2rem;
    bottom: 2rem;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #e2e8f0 20%,
        #e2e8f0 80%,
        transparent 100%
    );
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .woocommerce-account .u-columns {
        flex-direction: column;
        gap: 1.5rem;
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .woocommerce-account .u-columns .u-column1,
    .woocommerce-account .u-columns .u-column2 {
        padding: 2rem 1.5rem;
    }

    .woocommerce-account .u-columns .u-column1::after {
        display: none;
    }

    .woocommerce-account .u-columns h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .woocommerce-account .u-columns .u-column1,
    .woocommerce-account .u-columns .u-column2 {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }

    .woocommerce-account .woocommerce-form input[type="text"],
    .woocommerce-account .woocommerce-form input[type="email"],
    .woocommerce-account .woocommerce-form input[type="password"] {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .woocommerce-account .woocommerce-form button[type="submit"],
    .woocommerce-account .woocommerce-form input[type="submit"] {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ============================================================
   Logged-in My Account Dashboard
   ============================================================ */
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li a:hover {
    background: #f8fafc;
    color: #e65100;
    border-left-color: #e65100;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
    background: #fff7ed;
    color: #e65100;
    font-weight: 600;
    border-left-color: #e65100;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
