/*
Theme Name: Store Hali
Theme URI: https://storehali.net
Author: Hali Store
Author URI: https://storehali.net
Template: flatsome
Version: 3.0.0
Description: Hali Store - Đồ xịn giá tốt
*/

/* ===== GOOGLE FONT (Enqueued via PHP for 300ms faster load) ===== */

/* ===== DESIGN TOKENS ===== */
:root {
    --h-primary: #2563eb;
    --h-primary-dark: #1d4ed8;
    --h-primary-light: #3b82f6;
    --h-primary-bg: #eff6ff;
    --h-accent: #f97316;
    --h-accent-dark: #ea580c;
    --h-success: #10b981;
    --h-success-dark: #059669;
    --h-danger: #ef4444;
    --h-danger-dark: #dc2626;
    --h-warning: #f59e0b;
    --h-text: #1e293b;
    --h-text-secondary: #64748b;
    --h-text-muted: #94a3b8;
    --h-bg: #f1f5f9;
    --h-bg-card: #ffffff;
    --h-border: #e2e8f0;
    --h-border-light: #f1f5f9;
    --h-radius: 12px;
    --h-radius-sm: 8px;
    --h-radius-xs: 6px;
    --h-radius-full: 50px;
    --h-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --h-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --h-shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --h-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --h-font: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== GLOBAL ===== */
body, .nav > li > a, .header-main, input, textarea, select, button {
    font-family: var(--h-font) !important;
}
body { color: var(--h-text); -webkit-font-smoothing: antialiased; }
#content { background: var(--h-bg); }
.is-divider { display: none; }
* { border-radius: revert; }

/* ===== HEADER ===== */
/* Override Flatsome Customizer inline styles */
#logo, #logo.logo {
    max-width: 440px !important;
    width: auto !important; /* Override inline #logo{width:200px} */
}
#logo a img.header-logo,
#logo a img.header_logo,
#logo a img.header-logo-dark,
#logo a img.header-logo-icon,
.header-main .logo img {
    max-height: 340px !important;
    width: auto !important;
    height: auto !important;
    min-width: 200px;
    min-height: 80px;
    object-fit: contain;
}
/* SVG logo không có intrinsic size → cần ép kích thước */
#logo a img[src$=".svg"],
#logo img[src$=".svg"] {
    width: 400px !important;
    height: 340px !important;
    max-height: 340px !important;
    min-height: 80px !important;
}
.header-main {
    height: auto !important;
    min-height: auto !important;
    padding: 12px 0;
    overflow: visible;
}
#logo a { display: flex; align-items: center; }

/* Sticky header */
.stuck .header-main {
    height: auto !important;
    padding: 4px 0;
}
.stuck #logo a img.header-logo,
.stuck #logo a img.header_logo,
.stuck #logo a img.header-logo-dark,
.stuck #logo a img.header-logo-icon,
.stuck .header-main .logo img,
.stuck #logo img {
    max-height: 55px !important;
    min-width: 80px;
    min-height: 25px;
}
.stuck #logo a img[src$=".svg"],
.stuck #logo img[src$=".svg"] {
    width: 140px !important;
    height: 45px !important;
    max-height: 55px !important;
}
.header-main .nav > li > a { line-height: 20px; font-weight: 500; }
.nav-spacing-medium > li { margin: 0; }
.nav > li > a { padding: 0; }
.header-hotline, .header-phone { display: inline-block; vertical-align: middle; }
.header-hotline { width: 49%; margin-right: 10px; color: var(--h-primary); }
.header-phone { width: 49%; }
.nav-dark .cart-icon strong { color: #fff; border-color: #fff; width: 17px; height: 16px; }

/* Header icons - modern circle */
.header-main .icon-search, .header-main .icon-user, .header-main .icon-shopping-cart {
    transition: transform var(--h-transition);
}
.header-main .header-button:hover i { transform: scale(1.1); }

/* ===== NAVIGATION BAR ===== */
#mega-menu-wrap { background: linear-gradient(135deg, var(--h-primary) 0%, var(--h-primary-dark) 100%); border-radius: 0; }
#mega_menu { margin-top: 8px; border: 1px solid var(--h-border); background: var(--h-bg-card); border-radius: var(--h-radius-sm); }
#wide-nav > .flex-row > .flex-left { width: 25%; min-width: 294px; margin-right: 15px; }
#mega_menu li a { padding: 10px 14px; display: block; font-size: 15px; font-weight: 500; color: var(--h-text); transition: background-color var(--h-transition), color var(--h-transition); border-radius: var(--h-radius-xs); }
#mega_menu li a:hover { background: var(--h-primary-bg); color: var(--h-primary); }
#mega_menu > li > ul.sub-menu { top: 0; width: 100%; }
#mega_menu ul.sub-menu > li > a { width: 100%; }
#mega_menu > li > ul.sub-menu > li > a { padding-left: 14px; }
#mega_menu ul.sub-menu > li, #mega_menu ul.sub-menu > li:nth-child(1) { margin-left: 2px; background: var(--h-bg-card); }
#mega_menu ul.sub-menu li:hover { background: var(--h-primary-bg); }

/* ===== SEARCH ===== */
.form-flat input:not([type="submit"]) { border-radius: var(--h-radius-full) !important; border: 2px solid var(--h-border); padding: 10px 18px; font-size: 14px; transition: border-color var(--h-transition); }
.form-flat input:not([type="submit"]):focus { border-color: var(--h-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.searchform-wrapper.form-flat .flex-col:last-of-type { margin-left: -9px; background: var(--h-primary); line-height: 35px; color: white; padding-left: 0; border-radius: 0 var(--h-radius-full) var(--h-radius-full) 0; }
.form-flat .flex-row .flex-col { margin-bottom: 7px; }

/* Custom Desktop Search Form Width Override (Dài gấp đôi) */
@media only screen and (min-width: 769px) {
    .header-search,
    .header-search-form-wrapper,
    .header-search-form,
    .header-search .searchform-wrapper {
        width: 460px !important; /* Dài gấp đôi kích thước mặc định (~220px -> 460px) */
        max-width: 100% !important;
    }
}


/* ===== TABS ===== */
.tabbed-content .nav > li.active > a { color: var(--h-primary); text-transform: uppercase; border: 2px solid var(--h-primary); background: var(--h-primary-bg); border-radius: var(--h-radius-sm); }
.tabbed-content .nav > li > a { color: var(--h-text); text-transform: uppercase; font-weight: 600; font-size: 13px; transition: all var(--h-transition); }
.tabbed-content .nav-uppercase > li > a { letter-spacing: 0; padding: 8px 16px; background: var(--h-bg); border-radius: var(--h-radius-sm); border: 2px solid var(--h-border); margin-bottom: 10px; }
.tabbed-content .nav-uppercase > li > a:hover { border-color: var(--h-primary); color: var(--h-primary); }
.tabbed-content .nav-divided > li { padding: 5px 10px 5px 0; }
/* ===== BUTTONS - Modern rounded ===== */
.button, button, input[type="submit"], .btn {
    border-radius: var(--h-radius-sm) !important;
    font-family: var(--h-font) !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    transition: background-color var(--h-transition), color var(--h-transition), border-color var(--h-transition), transform var(--h-transition), box-shadow var(--h-transition) !important;
}
.button.primary:not(.is-outline), .button.primary, .button.checkout,
.single_add_to_cart_button, .add_to_cart_button {
    background: linear-gradient(135deg, var(--h-primary) 0%, var(--h-primary-dark) 100%) !important;
    border: none !important;
    color: #fff !important;
    padding: 10px 24px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.button.primary:not(.is-outline):hover, .single_add_to_cart_button:hover,
.add_to_cart_button:hover {
    background: linear-gradient(135deg, var(--h-primary-dark) 0%, #1e40af 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.4);
}
.button.secondary, .button.is-outline { border: 2px solid var(--h-primary) !important; color: var(--h-primary) !important; background: transparent !important; }
.button.secondary:hover, .button.is-outline:hover { background: var(--h-primary-bg) !important; }
.button.alert { background: var(--h-accent) !important; }
.button.success { background: var(--h-success) !important; }
.add-to-cart-button a { text-transform: uppercase; font-weight: 600; font-size: 12px; }

/* WC Quantity input - aligned group */
.quantity {
    display: inline-flex !important;
    align-items: stretch !important;
    border: 2px solid var(--h-border);
    border-radius: var(--h-radius-sm) !important;
    overflow: hidden;
    height: 46px;
    vertical-align: middle;
}
.quantity input[type="number"], .quantity .qty {
    border: none !important; border-left: 1px solid var(--h-border) !important;
    border-right: 1px solid var(--h-border) !important; border-radius: 0 !important;
    font-weight: 600; text-align: center;
    width: 50px !important; height: 100% !important; padding: 0 !important;
    font-size: 15px; margin: 0; -moz-appearance: textfield; background: var(--h-bg-card);
    box-shadow: none !important; line-height: 42px;
}
.quantity input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.quantity input[type="number"]:focus { background: var(--h-primary-bg); }
.quantity .minus, .quantity .plus {
    border: none !important; border-radius: 0 !important; background: var(--h-bg) !important;
    font-weight: 700; color: var(--h-text); width: 40px; height: 100% !important;
    display: flex !important; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; padding: 0 !important; margin: 0;
    transition: background-color var(--h-transition), color var(--h-transition); line-height: 1;
}
.quantity .minus:hover, .quantity .plus:hover {
    background: var(--h-primary-bg) !important; color: var(--h-primary);
}

/* ===== PRODUCT CARDS ===== */
.product-small .col-inner, .product-small .box {
    border-radius: var(--h-radius) !important; overflow: hidden;
    border: 1px solid var(--h-border); background: var(--h-bg-card);
    transition: box-shadow var(--h-transition), transform var(--h-transition), border-color var(--h-transition); box-shadow: var(--h-shadow);
}
.product-small .col-inner:hover, .product-small .box:hover {
    box-shadow: var(--h-shadow-lg); transform: translateY(-4px); border-color: var(--h-primary-light);
}
.col-inner .box-image img { border-radius: var(--h-radius) var(--h-radius) 0 0 !important; }
.col-inner .box-text.text-center { padding: 12px; }
.price-wrapper { margin-top: 8px; }
.price-wrapper .price del { display: inline-block; color: var(--h-text-muted); font-size: 13px; text-decoration: line-through; }
.price-wrapper .price del span.amount { color: var(--h-text-muted); }
.price-wrapper span.amount { color: var(--h-text); font-weight: 700; }
.price-wrapper ins { text-decoration: none; }
.price-wrapper ins span.amount { color: var(--h-danger); font-weight: 700; }
.title-wrapper a { font-weight: 600; color: var(--h-text); font-size: 14px; line-height: 1.4; }
.title-wrapper a:hover { color: var(--h-primary); transition: color var(--h-transition); }
.box-text .product-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px; }
.box-text .product-title a { font-size: 13px; }
.row-small > .flickity-viewport > .flickity-slider > .col { padding: 0 8px 16px; }
.section-title-normal .section-title-main { border-color: var(--h-primary) !important; font-weight: 700; }

/* Badge discount */
.badge-container .badge-inner { border-radius: var(--h-radius-xs) !important; font-weight: 700; }
.callout.badge .badge-inner { background: var(--h-danger) !important; }

/* ===== PRODUCT DETAIL ===== */
.product-main { padding-top: 20px; background: var(--h-bg); }
.product-main h1 { font-size: 24px; font-weight: 700; color: var(--h-text); line-height: 1.3; }
.product-main del span.amount { font-size: 15px; color: var(--h-text-muted); text-decoration: line-through; }
.product-main .price span.amount { color: var(--h-text); font-weight: 700; }
.product-main .price ins { text-decoration: none; }
.product-main .price ins span.amount { color: var(--h-danger); font-weight: 700; }
.product-main .badge-container { display: none; }
.product-main .product-short-description p,
.product-main .product-short-description li,
.product-main .product-short-description li a { font-size: 15px; color: var(--h-text); text-align: justify; line-height: 1.7; }
.product-main .product-short-description p { margin-bottom: 5px; }
.product-main .cart { margin-bottom: 0; margin-top: 15px; }
.product_meta > span { padding: 10px 0; color: var(--h-text-secondary); }
.product-main .tabbed-content .nav > li.active > a { padding: 8px 16px; background: var(--h-primary-bg); margin-bottom: 10px; border-radius: var(--h-radius-sm); }
.product-main .form-flat button { border-radius: var(--h-radius-sm) !important; }
.product-main .large-9 { background: var(--h-bg-card); border-radius: 0 var(--h-radius) var(--h-radius) 0; padding-top: 10px; }
.product-main #product-sidebar { background: var(--h-bg-card); border-radius: var(--h-radius) 0 0 var(--h-radius); padding-top: 10px; }
.product-main .large-6 { padding-bottom: 0; }
.product-main .product-info { padding-bottom: 0; }
.product-main .product-gallery .slide img { border-radius: var(--h-radius-sm); }

/* Price (DevVN Prefix removed per request) */
.product-summary .woocommerce-Price-currencySymbol { font-size: 12px; vertical-align: top; display: inline-block; margin-top: 0; }

/* ===== SIDEBAR WIDGETS ===== */
.product_list_widget del { display: none; }
.product_list_widget .star-rating { display: none; }
.product_list_widget ins, .product_list_widget ins span.amount { color: var(--h-danger); font-weight: 600; }
.product_list_widget span.amount { color: var(--h-text); }
.product_list_widget span { font-size: 14px; }
#product-sidebar .product_list_widget { margin-top: 10px; }
.product-categories li { font-size: 15px; font-weight: 500; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs a { color: var(--h-text-muted); font-weight: 500; text-transform: none; font-size: 13px; }
.breadcrumbs a:hover { color: var(--h-primary); }

/* ===== CATEGORY SECTION ===== */
.san-pham-lam-sach-da .box { background: var(--h-bg-card); border-radius: var(--h-radius); border: 1px solid var(--h-border); padding: 8px; }
.san-pham-lam-sach-da .box-text { padding-top: 5px; padding-bottom: 2px; }
.san-pham-lam-sach-da .col-inner .box-text.text-center { padding-left: 0; padding-right: 0; }
.san-pham-lam-sach-da .row-small > .col { padding: 0 5px 10px; }
.html_after_addtocart { background-color: var(--h-primary-bg); padding: 12px; border: 1px solid var(--h-primary-light); border-radius: var(--h-radius-sm); font-size: 15px; color: var(--h-primary-dark); }

/* ===== FORMS ===== */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"],
input[type="number"]:not(.qty),
.woocommerce-input-wrapper input:not(.qty), select, .select2-container .select2-selection--single {
    border: 2px solid var(--h-border) !important; border-radius: var(--h-radius-sm) !important;
    box-shadow: none !important; padding: 10px 14px;
    transition: border-color var(--h-transition); font-size: 14px;
}
input:focus, textarea:focus, select:focus { border-color: var(--h-primary) !important; box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important; }
textarea { border: 2px solid var(--h-border); border-radius: var(--h-radius-sm) !important; box-shadow: none; }
input[type="submit"]:not(.is-form) {
    background: linear-gradient(135deg, var(--h-primary) 0%, var(--h-primary-dark) 100%);
    width: 100%; border-radius: var(--h-radius-sm) !important; margin: 0 auto; display: inherit;
    transition: background var(--h-transition), transform var(--h-transition); font-weight: 600; border: none;
}
input[type="submit"]:not(.is-form):hover { background: linear-gradient(135deg, var(--h-primary-dark) 0%, #1e40af 100%); transform: translateY(-1px); }

/* ===== FOOTER ===== */
.footer-wrapper { border-top: 1px solid var(--h-border); }
.footer-wrapper span { font-size: 15px; }
.article-inner .relative { display: none; }


/* ===== WOOCOMMERCE MISC ===== */
.woocommerce-message, .woocommerce-info { border-radius: var(--h-radius-sm); border-top-color: var(--h-primary); }
.woocommerce-error { border-radius: var(--h-radius-sm); border-top-color: var(--h-danger); }
.wc-proceed-to-checkout .button { border-radius: var(--h-radius-sm) !important; }
.coupon .input-text { border-radius: var(--h-radius-sm) !important; }
table.shop_table { border-radius: var(--h-radius-sm); overflow: hidden; }
.woocommerce-tabs .panel { border-radius: var(--h-radius-sm); }


/* ===== RESPONSIVE (Consolidated 48em and 768px breakpoints) ===== */
@media only screen and (max-width: 768px) {
    .hali-mobile-nav { display: flex !important; }

    #logo a img.header-logo, #logo a img.header_logo,
    #logo a img.header-logo-icon, .header-main .logo img { 
        max-height: 100px !important; 
        min-width: 100px; 
        height: auto !important; 
    }
    #logo a img[src$=".svg"] { 
        width: 160px !important; 
        height: 160px !important; 
    }
    #logo.logo { max-width: 200px; }

    /* Nút Thêm vào giỏ hàng + Mua Ngay: 1 dòng trên mobile */
    .single_add_to_cart_button,
    .add_to_cart_button,
    .add-to-cart-button a,
    .ux-buy-now-button {
        font-size: 12px !important;
        padding: 8px 10px !important;
        white-space: nowrap !important;
    }

    /* Khoảng trắng cho bottom nav */
    body { padding-bottom: 64px; }
}

/* ===== HALI MOBILE BOTTOM NAV ===== */
/* Desktop: Hide */
.hali-mobile-nav {
    display: none !important;
}
/* Mobile: Show */
@media only screen and (max-width: 768px) {
    .hali-mobile-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        height: 64px;
        align-items: center;
        justify-content: space-around;
        padding: 4px 0 env(safe-area-inset-bottom, 0);
        font-family: var(--h-font);
        margin: 0;
        width: 100%;
    }
}
.hali-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; gap: 2px; text-decoration: none !important;
    color: var(--h-text-secondary) !important; font-size: 11px; font-weight: 600;
    position: relative; padding: 6px 0;
    transition: color var(--h-transition);
    -webkit-tap-highlight-color: transparent;
}
.hali-nav-item svg { width: 22px; height: 22px; transition: transform var(--h-transition); }
.hali-nav-item:hover, .hali-nav-item.active {
    color: var(--h-primary) !important;
}
.hali-nav-item.active svg { transform: scale(1.1); }
.hali-cart-badge {
    position: absolute; top: 2px; right: calc(50% - 20px);
    background: var(--h-danger); color: #fff; font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1;
}

/* Category slide-up panel */
.hali-cat-panel {
    display: block; position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
    background: var(--h-bg-card); border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    max-height: 70vh; overflow-y: auto;
    transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding-bottom: 64px;
}
.hali-cat-panel.open { transform: translateY(0); }
.hali-cat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--h-border);
    position: sticky; top: 0; background: var(--h-bg-card); z-index: 1;
    border-radius: 20px 20px 0 0;
}
.hali-cat-header strong { font-size: 16px; color: var(--h-text); }
.hali-cat-header button {
    background: var(--h-bg); border: none; width: 32px; height: 32px;
    border-radius: 50%; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--h-text-secondary);
}
.hali-cat-panel-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hali-cat-group {
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 10px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
}
.hali-cat-parent-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f8fafc;
}
.hali-parent-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none !important;
    position: relative;
    padding-left: 10px;
}
.hali-parent-name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: var(--h-primary, #d82626);
    border-radius: 2px;
}
.hali-view-all {
    font-size: 11px;
    font-weight: 600;
    color: var(--h-primary, #d82626) !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 2px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.hali-view-all svg {
    margin-left: 2px;
}
.hali-view-all:hover, .hali-view-all:active {
    opacity: 1;
}
.hali-cat-child-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}
.hali-cat-child-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 2px;
    border-radius: 8px;
    text-decoration: none !important;
    color: #334155 !important;
    font-size: 11px;
    font-weight: 550;
    text-align: center;
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}
.hali-cat-child-item:hover, .hali-cat-child-item:active {
    background: #fff8f8;
    border-color: #fee2e2;
    color: var(--h-primary, #d82626) !important;
    transform: translateY(-1px);
}
.hali-cat-child-item img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.hali-cat-child-bullet {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: var(--h-primary, #d82626);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.hali-cat-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3); z-index: 9998;
}
.hali-cat-panel.open ~ .hali-cat-overlay { display: block; }

/* ============================================================
 * ===== MODERN AUTH CARD (LOGIN / REGISTER) =====
 * ============================================================ */
.woocommerce-account .account-container {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 900px !important;
    margin: 40px auto !important;
}

.hali-auth-card {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04), 0 5px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    min-height: 520px;
    width: 100%;
}

.hali-auth-form-side {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hali-auth-brand-side {
    flex: 0.9;
    background: #f8fafc;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border-left: 1px solid #f1f5f9;
}

.hali-auth-box {
    animation: haliFadeIn 0.4s ease-out;
}

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

.hali-auth-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin-bottom: 40px !important;
    text-transform: none !important;
    letter-spacing: -0.5px !important;
    line-height: 1.2 !important;
}

/* Underline-style Input Groups */
.hali-input-group {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 24px;
    border-bottom: 1.5px solid #e2e8f0;
    transition: border-color 0.25s ease;
}

.hali-input-group:focus-within {
    border-color: var(--h-primary);
}

.hali-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    width: 24px;
    height: 24px;
    margin-right: 12px;
    transition: color 0.25s ease;
}

.hali-input-group:focus-within .hali-input-icon {
    color: var(--h-primary);
}

.hali-input-icon svg {
    width: 18px;
    height: 18px;
}

.hali-input-group input.input-text {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 10px 0 !important;
    background: transparent !important;
    font-size: 15px !important;
    color: #1e293b !important;
    flex: 1;
    width: 100%;
}

.hali-input-group input.input-text::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.hali-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 30px;
}

.hali-form-footer label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    cursor: pointer;
    font-weight: 500;
}

.hali-form-footer input[type="checkbox"] {
    margin: 0 !important;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1.5px solid #cbd5e1;
    cursor: pointer;
}

.hali-lost-password {
    color: #64748b !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

.hali-lost-password:hover {
    color: var(--h-primary) !important;
}

/* Beautiful blue submit button */
.hali-btn-primary {
    background: #3b82f6 !important; /* Premium Blue from mockup */
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease, transform 0.1s ease !important;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2) !important;
    display: inline-block;
}

.hali-btn-primary:hover {
    background: #2563eb !important;
    transform: translateY(-1px);
}

.hali-btn-primary:active {
    transform: translateY(0);
}

.hali-action-row {
    margin-top: 10px;
}

/* Right side Logo and toggle styling */
.hali-auth-logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
}

.hali-auth-logo {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.03));
}

.hali-auth-toggle-container {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.hali-toggle-link {
    color: #1e293b !important;
    text-decoration: underline !important;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.hali-toggle-link:hover {
    color: var(--h-primary) !important;
}

/* Responsive auth card */
@media only screen and (max-width: 768px) {
    .hali-auth-card {
        flex-direction: column-reverse;
        min-height: auto;
    }
    
    .hali-auth-form-side {
        padding: 30px 24px;
    }
    
    .hali-auth-brand-side {
        padding: 30px 24px;
        background: #f8fafc;
        border-left: none;
        border-bottom: 1px solid #f1f5f9;
        gap: 20px;
    }
    
    .hali-auth-logo-container {
        max-width: 160px;
    }
    
    .hali-auth-logo {
        max-height: 80px;
    }
}




