/* =============================================
   AUTH PAGES (Login / Register)
============================================= */
.hk-auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left panel - dark branded side */
.hk-auth-left {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 50%, #3d2010 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}
.hk-auth-left::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(200,149,108,0.08);
    top: -100px;
    right: -100px;
}
.hk-auth-left::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(200,149,108,0.05);
    bottom: -60px;
    left: -60px;
}

.hk-auth-left-content { position: relative; z-index: 1; text-align: center; max-width: 340px; }

.hk-auth-logo-big {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
    display: inline-block;
}

.hk-auth-brand {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.25rem;
}

.hk-auth-brand-sub {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.hk-auth-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}
.hk-auth-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}
.hk-auth-stat span { font-size: 0.7rem; color: rgba(255,255,255,0.4); }

.hk-auth-features { display: flex; flex-direction: column; gap: 0.625rem; }
.hk-auth-feature {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    text-align: left;
    padding: 0.5rem 0.875rem;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 2px solid var(--primary);
}

/* Right panel - form side */
.hk-auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--cream);
}

.hk-auth-box {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
}

/* Tabs */
.hk-auth-tabs {
    display: flex;
    gap: 0;
    background: var(--cream);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 1.75rem;
}
.hk-auth-tab {
    flex: 1;
    padding: 0.625rem;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
    background: transparent;
}
.hk-auth-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* Panels */
.hk-auth-panel { display: none; }
.hk-auth-panel.active { display: block; }

.hk-auth-welcome {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Form groups */
.hk-form-group { margin-bottom: 1.1rem; }
.hk-form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.hk-forgot-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}
.hk-forgot-link:hover { text-decoration: underline; }

.hk-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.hk-input-icon {
    position: absolute;
    left: 0.875rem;
    font-size: 0.9rem;
    z-index: 1;
    pointer-events: none;
}
.hk-input-wrap input.input-text {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.75rem;
    border: 2px solid #e8d8cc;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text);
    background: var(--cream);
    outline: none;
    transition: var(--transition);
}
.hk-input-wrap input.input-text:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200,149,108,0.15);
}

/* Password toggle */
.hk-pw-toggle {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.hk-pw-toggle:hover { opacity: 1; }

/* Remember me */
.hk-form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.hk-form-check label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
}
.hk-form-check input[type="checkbox"] { accent-color: var(--primary); }

/* Submit button */
.hk-auth-submit {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
    margin-top: 0.5rem;
}
.hk-auth-submit:hover {
    background: linear-gradient(135deg, var(--primary-dark), #5c2a0e);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(200,149,108,0.4);
}

/* Switch link */
.hk-auth-switch {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.25rem;
}
.hk-auth-switch button {
    background: none;
    border: none;
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}
.hk-auth-switch button:hover { color: var(--primary-dark); }

.hk-auth-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--cream);
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    margin-bottom: 1rem;
}

/* WooCommerce error messages inside auth */
.hk-auth-box .woocommerce-error,
.hk-auth-box .woocommerce-message,
.hk-auth-box .woocommerce-info {
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    list-style: none;
}
.hk-auth-box .woocommerce-error  { background: #fef2f2; color: #991b1b; border-left: 4px solid #dc2626; }
.hk-auth-box .woocommerce-message { background: #f0fdf4; color: #166534; border-left: 4px solid #16a34a; }
.hk-auth-box .woocommerce-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }

/* =============================================
   MY ACCOUNT DASHBOARD
============================================= */
.hk-dashboard-welcome {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--dark));
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}
.hk-dashboard-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.hk-dashboard-welcome h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.25rem; }
.hk-dashboard-welcome p  { color: rgba(255,255,255,0.65); font-size: 0.825rem; margin: 0; }

.hk-dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.hk-dash-card {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    transition: var(--transition);
}
.hk-dash-card:hover {
    border-color: var(--primary);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.hk-dash-card-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.hk-dash-card-label { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.hk-dash-card-sub   { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* =============================================
   RESPONSIVE - Auth
============================================= */
@media (max-width: 768px) {
    .hk-auth-wrapper  { grid-template-columns: 1fr; min-height: auto; }
    .hk-auth-left     { display: none; }
    .hk-auth-right    { padding: 1.5rem 1rem; min-height: 100vh; align-items: flex-start; padding-top: 2rem; }
    .hk-auth-box      { padding: 1.75rem 1.25rem; }
    .hk-dashboard-cards { grid-template-columns: repeat(2,1fr); }
}
