/* ==========================================================================
   HEALTHY AYUSH - AUTHENTICATION STYLES (auth.css)
   Clean, modern, responsive split-view & auth component styles
   ========================================================================== */

/* 1. Layout & Page Resets for Edge-to-Edge Split Views */
html,
body.ha-fullpage-auth {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 100vh !important;
    background-color: #ffffff;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.ha-fullpage-auth .account-pages {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
}

body.ha-fullpage-auth .account-pages .container,
body.ha-fullpage-auth .account-pages .container-fluid {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Left Hero Panel Canvas & Elements */
.ha-hero-side {
    background: radial-gradient(120% 120% at 30% 20%, #f4fbf7 0%, #e6f4ec 55%, #d6ede2 100%);
    border-right: 1px solid #dbeae0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ha-hero-image {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 20px 35px rgba(29, 48, 43, 0.10));
}

.ha-hero-image:hover {
    transform: scale(1.02);
}

.ha-glass-feature {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(29, 48, 43, 0.03);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease;
}

.ha-glass-feature:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
}

/* 3. Form Input Controls & Labels */
.ha-form-label {
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    color: #1e293b !important;
    margin-bottom: 0.4rem;
    display: block;
}

.ha-checkbox-label {
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.82rem;
}

.ha-custom-check {
    accent-color: #3e8e16;
    width: 17px;
    height: 17px;
    border-radius: 4px;
    cursor: pointer;
}

.ha-input-group {
    position: relative;
}

.ha-input-icon {
    position: absolute;
    left: 1.05rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.25rem;
    pointer-events: none;
    transition: color 0.18s ease;
    z-index: 2;
}

.ha-form-input,
.ha-form-control,
.form-control,
.form-select {
    width: 100%;
    height: 50px;
    padding: 0.65rem 1rem 0.65rem 2.85rem;
    font-size: 0.94rem;
    font-weight: 500;
    color: #0f172a;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.8rem;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none !important;
}

.ha-form-input:focus,
.ha-form-control:focus,
.form-control:focus,
.form-select:focus {
    background-color: #ffffff;
    border-color: #55a822;
    box-shadow: 0 0 0 3.5px rgba(85, 168, 34, 0.18);
    color: #0f172a;
}

.ha-input-group:focus-within .ha-input-icon {
    color: #3e8e16;
}

.ha-password-toggle {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.35rem 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease;
    z-index: 2;
}

.ha-password-toggle:hover {
    color: #3e8e16;
}

/* 4. Form Section Dividers */
.ha-form-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #3e8e16;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 1.5px solid #e2e8f0;
}

/* 5. Select2 Custom Styling for Auth */
.select2-container--default .select2-selection--single {
    height: 50px !important;
    border-radius: 0.8rem !important;
    border: 1.5px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.18s ease;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    background-color: #ffffff !important;
    border-color: #55a822 !important;
    box-shadow: 0 0 0 3.5px rgba(85, 168, 34, 0.18) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px !important;
    padding-left: 1rem !important;
    padding-right: 2rem !important;
    color: #0f172a !important;
    font-size: 0.94rem !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    right: 10px !important;
}

.select2-dropdown {
    border-radius: 0.75rem !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
}

.select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #3e8e16 !important;
}

/* 6. Buttons & Actions */
.ha-btn-submit {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #6bb82d 0%, #3e8e16 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(62, 142, 22, 0.32);
    text-decoration: none;
}

.ha-btn-submit:hover {
    background: linear-gradient(135deg, #5ea824 0%, #337a11 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(62, 142, 22, 0.42);
    color: #ffffff !important;
}

.ha-btn-submit:active {
    transform: translateY(0);
}

.ha-btn-logout {
    background: #F43F5E;
    color: #ffffff !important;
    border: none;
    border-radius: 0.85rem;
    height: 48px;
    font-size: 0.92rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.28);
    text-decoration: none;
}

.ha-btn-logout:hover {
    background: #e11d48;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(244, 63, 94, 0.35);
    color: #ffffff !important;
}

.ha-btn-cancel {
    background: #ffffff;
    color: #475569 !important;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.85rem;
    height: 48px;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.ha-btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a !important;
}

/* User Pill (Profile snippet on auth / logout) */
.ha-user-pill {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-align: left;
    margin-bottom: 1.25rem;
}

.ha-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(62, 142, 22, 0.12);
    color: #3e8e16;
    font-weight: 700;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(62, 142, 22, 0.25);
    flex-shrink: 0;
    object-fit: cover;
}

/* 7. Typography & Theme Colors */
.ha-welcome-title {
    color: #1a3c17;
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.ha-auth-title {
    color: #1a3c17;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ha-auth-subtitle {
    font-size: 1.02rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.5;
}

.text-teal-brand {
    color: #3e8e16 !important;
}

.text-teal-brand:hover {
    color: #2b660d !important;
}
