/* Balitech HRMS — Enterprise Login */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-soft: rgba(249, 115, 22, 0.14);
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --surface: #0c0e17;
    --surface-2: #12151f;
    --surface-glass: rgba(18, 21, 31, 0.92);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #f8fafc;
    --text-muted: rgba(255, 255, 255, 0.55);
    --text-dim: rgba(255, 255, 255, 0.38);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --success: #10b981;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

html { -webkit-font-smoothing: antialiased; }

body.login-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 32px;
    color: var(--text);
    background: var(--surface);
    overflow-x: hidden;
}

/* Background */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(249, 115, 22, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(99, 102, 241, 0.1), transparent 55%),
        linear-gradient(160deg, #0a0c14 0%, #151929 45%, #0f111a 100%);
}

.login-bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.login-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}
.login-orb-1 { width: 420px; height: 420px; background: rgba(249,115,22,0.15); top: -120px; left: -80px; }
.login-orb-2 { width: 360px; height: 360px; background: rgba(99,102,241,0.12); bottom: -100px; right: -60px; }

/* Shell */
.login-container {
    width: 100%;
    max-width: 1080px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.login-shell {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 640px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.65),
        0 0 40px -10px rgba(249, 115, 22, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    background: rgba(14, 17, 27, 0.88);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    position: relative;
}

.login-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c 40%, #6366f1 75%, #818cf8);
    z-index: 2;
    pointer-events: none;
}

/* Hero */
.login-hero {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(165deg, rgba(249, 115, 22, 0.11) 0%, rgba(99, 102, 241, 0.06) 45%, transparent 85%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    border-right: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.login-hero-accent {
    position: absolute;
    top: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.14) 0%, transparent 68%);
    pointer-events: none;
}

.login-hero-top { flex: 1; position: relative; z-index: 1; }

.balitech-tile-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    user-select: none;
}

.balitech-tile-wordmark .tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 38px;
    border-radius: 9px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 20px;
    font-weight: 800;
    cursor: default;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.balitech-tile-wordmark .tile:hover {
    transform: translateY(-3px) scale(1.08) !important;
    z-index: 5;
}

/* Black / Dark Glass Tiles */
.balitech-tile-wordmark .tile-dark {
    background: linear-gradient(145deg, #1c2030 0%, #0f121d 100%);
    border: 1.5px solid rgba(249, 115, 22, 0.35);
    color: #f97316;
    text-shadow: 0 0 10px rgba(249, 115, 22, 0.4);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4);
}

.balitech-tile-wordmark .tile-dark:hover {
    border-color: #f97316;
    box-shadow: 
        0 8px 22px rgba(249, 115, 22, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Vibrant Balitech Orange Tiles */
.balitech-tile-wordmark .tile-orange {
    background: linear-gradient(145deg, #f97316 0%, #ea580c 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 
        0 4px 14px rgba(249, 115, 22, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.balitech-tile-wordmark .tile-orange:hover {
    background: linear-gradient(145deg, #fb923c 0%, #f97316 100%);
    box-shadow: 
        0 8px 24px rgba(249, 115, 22, 0.6),
        0 8px 20px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Tile positions & tilt rotations */
.balitech-tile-wordmark .tile-b { transform: rotate(-5deg); }
.balitech-tile-wordmark .tile-a { transform: rotate(4deg); }
.balitech-tile-wordmark .tile-l { transform: rotate(-3deg); }
.balitech-tile-wordmark .tile-i { transform: rotate(5deg); width: 30px; }
.balitech-tile-wordmark .tile-t { transform: rotate(-4deg); }
.balitech-tile-wordmark .tile-e { transform: rotate(3deg); }
.balitech-tile-wordmark .tile-c { transform: rotate(-4deg); }
.balitech-tile-wordmark .tile-h { transform: rotate(4deg); }

.hrms-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-soft);
    border: 1px solid rgba(249, 115, 22, 0.3);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12);
}

.login-hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    margin-bottom: 16px;
}

.login-hero h1 span {
    background: linear-gradient(135deg, #fff 30%, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-hero-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    max-width: 400px;
    margin-bottom: 28px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 28px;
}

.hero-stat {
    padding: 14px 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    text-align: center;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-stat:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.3);
}

.hero-stat strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.hero-stat span {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.45;
    transition: transform 0.2s;
}

.feature-list li:hover {
    color: var(--text);
    transform: translateX(3px);
}

.feature-list li i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.16), rgba(249, 115, 22, 0.08));
    border: 1px solid rgba(249, 115, 22, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fb923c;
    flex-shrink: 0;
    font-size: 13px;
    margin-top: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.login-hero-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-dim);
}

.login-hero-footer i {
    color: var(--success);
    font-size: 14px;
}

/* Panel */
.login-panel {
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 120px),
        var(--surface-glass);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
.login-hero-brand {
    margin-bottom: 24px;
}

.balitech-logo {
    display: block;
    height: auto;
    object-fit: contain;
}

.balitech-logo--hero {
    width: 200px;
    max-width: 100%;
    margin-bottom: 14px;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.4));
}

.panel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.panel-header .balitech-tile-wordmark {
    margin-bottom: 14px;
    justify-content: center;
}

.panel-header-copy {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.panel-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.45);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-header h2 {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
    line-height: 1.25;
}

.zoho-underline {
    position: relative;
    display: inline-block;
}

.zoho-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

.panel-header p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 4px 0 0;
    font-weight: 500;
}
}

.panel-header p strong {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

/* Branch */
.branch-section { margin-bottom: 24px; }

.branch-login-hint {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
}

.branch-login-hint strong {
    color: rgba(250, 204, 21, 0.95);
    font-weight: 600;
}

.branch-section > label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.branch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (min-width: 901px) {
    .branch-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.branch-chip {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
    text-align: left;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
}

.branch-chip:hover {
    border-color: var(--border-strong);
    background: rgba(255,255,255,0.05);
}

.branch-chip.active {
    border-color: var(--chip-color, var(--primary));
    background: color-mix(in srgb, var(--chip-color, var(--primary)) 16%, transparent);
    color: var(--text);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--chip-color, var(--primary)) 28%, transparent),
        0 4px 14px color-mix(in srgb, var(--chip-color, var(--primary)) 18%, transparent);
}

.branch-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--chip-color, var(--primary));
    flex-shrink: 0;
}

.branch-select-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.zoho-form-group {
    margin-bottom: 18px;
}

.zoho-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.zoho-input-icon {
    position: absolute;
    left: 18px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.zoho-input-wrapper input {
    width: 100%;
    padding: 15px 44px 15px 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.01em;
    font-family: inherit;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zoho-input-wrapper input:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
}

.zoho-input-wrapper input:focus,
.zoho-input-wrapper input:focus-visible {
    outline: none;
    border-color: #f97316;
    background: rgba(20, 24, 38, 0.95);
    box-shadow: 
        0 0 0 3px rgba(249, 115, 22, 0.2),
        0 8px 24px -4px rgba(249, 115, 22, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.5);
}

.zoho-input-wrapper:focus-within .zoho-input-icon {
    color: #f97316;
    transform: scale(1.08);
}

.zoho-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.38);
    font-size: 14px;
    font-weight: 400;
}

/* Keep dark background when browser autofills saved credentials */
.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus,
.input-wrapper input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #12151f inset !important;
    box-shadow: 0 0 0 1000px #12151f inset !important;
    -webkit-text-fill-color: var(--text) !important;
    caret-color: var(--text);
    border: 1.5px solid rgba(249, 115, 22, 0.55);
    transition: background-color 600000s ease-in-out 0s;
}

.input-wrapper:focus-within > i.field-icon { color: var(--primary); }

.input-wrapper input::placeholder { color: var(--text-dim); font-weight: 400; opacity: 1; }

.toggle-password {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.toggle-password:hover {
    color: var(--text-muted);
    background: rgba(255,255,255,0.06);
}

/* Portal options */
.portal-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.portal-divider::before,
.portal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.portal-hint {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.portal-hint-card {
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portal-hint-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.portal-hint-card.ess { border-color: rgba(99, 102, 241, 0.25); }
.portal-hint-card.work { border-color: rgba(249, 115, 22, 0.25); }

.portal-hint-card.ess:hover {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 6px 16px -4px rgba(99, 102, 241, 0.2);
}

.portal-hint-card.work:hover {
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 6px 16px -4px rgba(249, 115, 22, 0.2);
}

.portal-hint-card strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

.portal-hint-card.ess strong { color: #a5b4fc; }
.portal-hint-card.work strong { color: #fdba74; }

.portal-hint-card span {
    font-size: 11px;
    color: var(--text-dim);
    line-height: 1.4;
}

.login-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.01em;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.login-btn i {
    transition: transform 0.25s ease;
}

.login-btn:hover:not(:disabled) i {
    transform: translateX(4px);
}

.login-btn:active:not(:disabled) { transform: translateY(0); }
.login-btn:disabled { opacity: 0.65; cursor: not-allowed; }

.login-btn-ess {
    background: linear-gradient(145deg, #1d2133 0%, #101322 100%);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    box-shadow: 
        0 8px 24px -4px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.login-btn-ess:hover:not(:disabled) {
    background: linear-gradient(145deg, #262b42 0%, #15182a 100%);
    color: #ffffff;
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 
        0 12px 28px -4px rgba(0, 0, 0, 0.7),
        0 0 16px -2px rgba(249, 115, 22, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.login-btn-work {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 24px -4px rgba(249, 115, 22, 0.45);
}

.login-btn-work:hover:not(:disabled) {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 12px 28px -4px rgba(249, 115, 22, 0.6);
    transform: translateY(-2px);
}

.login-panel-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
    color: var(--text-dim);
}

.login-panel-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Error & toast */
.error-message {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}

.error-message.show {
    display: flex;
    animation: shake 0.35s ease;
}

.error-message i { margin-top: 2px; flex-shrink: 0; }

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    animation: slideIn 0.35s ease;
    max-width: 360px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.fa-spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Page footer */
.login-site-footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1080px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.login-page-footer {
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .login-hero {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 36px 28px;
    }
    .login-panel { padding: 32px 28px; }
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .balitech-logo--hero { width: 200px; }
}

@media (max-width: 520px) {
    .branch-grid,
    .portal-hint { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr; }
    .login-hero h1 { font-size: 28px; }
    .toast-container { left: 16px; right: 16px; }
}

.login-panel button:focus-visible,
.branch-chip:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.input-wrapper input:focus-visible {
    outline: none;
}

/* ── Desktop density at 100% zoom (same design — spacing & type only) ── */
@media (min-width: 769px) {
    body.login-page {
        font-size: 14px;
        line-height: 1.5;
        padding: 16px 20px 24px;
        overflow-y: auto;
    }

    .login-container {
        max-width: 1020px;
    }

    .login-shell {
        min-height: 0;
        grid-template-columns: 1.05fr 0.95fr;
    }

    .login-hero {
        padding: 32px 30px;
    }

    .balitech-logo--hero {
        width: 200px;
        margin-bottom: 20px;
    }

    .hrms-badge {
        padding: 6px 12px;
        font-size: 10px;
        margin-bottom: 14px;
    }

    .login-hero h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .login-hero-desc {
        font-size: 13px;
        margin-bottom: 20px;
        max-width: 380px;
    }

    .hero-stats {
        gap: 8px;
        margin-bottom: 20px;
    }

    .hero-stat {
        padding: 11px 10px;
    }

    .hero-stat strong {
        font-size: 16px;
    }

    .feature-list {
        gap: 8px;
    }

    .feature-list li {
        font-size: 12px;
        gap: 10px;
    }

    .feature-list li i {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .login-hero-footer {
        padding-top: 18px;
        margin-top: 18px;
        font-size: 11px;
    }

    .login-panel {
        padding: 32px 28px;
    }

    .panel-header {
        margin-bottom: 20px;
    }

    .panel-header-row {
        gap: 12px;
        margin-bottom: 6px;
    }

    .panel-icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .panel-header h2 {
        font-size: 20px;
    }

    .panel-header p {
        font-size: 12px;
        padding-left: 54px;
    }

    .branch-section {
        margin-bottom: 18px;
    }

    .branch-login-hint {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .branch-chip {
        padding: 9px 11px;
        font-size: 11px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .form-group label {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .input-wrapper input {
        padding: 11px 40px 11px 40px;
        font-size: 13px;
    }

    .portal-divider {
        margin: 16px 0 12px;
        font-size: 10px;
    }

    .portal-hint {
        gap: 8px;
        margin-bottom: 12px;
    }

    .portal-hint-card {
        padding: 10px;
    }

    .login-actions {
        gap: 8px;
    }

    .login-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .login-panel-footer {
        margin-top: 18px;
        padding-top: 16px;
    }

    .login-page-footer {
        margin-top: 14px;
        font-size: 10px;
    }

    .login-site-footer {
        margin-top: 18px;
        gap: 12px;
    }

    body.login-page .gc-powered-wrap--login {
        padding: 0;
    }
}

@media (min-width: 769px) and (max-height: 820px) {
    .login-hero {
        padding: 26px 24px;
    }

    .login-panel {
        padding: 26px 24px;
    }

    .login-hero h1 {
        font-size: 24px;
    }

    .balitech-logo--hero {
        width: 176px;
        margin-bottom: 14px;
    }

    .hero-stats {
        margin-bottom: 14px;
    }

    .login-hero-desc {
        margin-bottom: 14px;
    }

    .feature-list li {
        font-size: 11px;
    }

    .panel-header {
        margin-bottom: 14px;
    }

    .branch-section {
        margin-bottom: 14px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .portal-divider {
        margin: 12px 0 10px;
    }
}

