/* ============================================================
   HIMA BIOLOGI 2026 — E-VOTING THEME
   Emerald · Teal · Lime · Glass · Organic
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-50:  #ecfdf5;
    --primary-100: #d1fae5;
    --primary-200: #a7f3d0;
    --primary-300: #6ee7b7;
    --primary-400: #34d399;
    --primary-500: #10b981;
    --primary-600: #059669;
    --primary-700: #047857;
    --primary-800: #065f46;
    --primary-900: #064e3b;

    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;

    --lime-300: #bef264;
    --lime-400: #a3e635;
    --lime-500: #84cc16;

    --success-50:  #f0fdf4;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --warning-50:  #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --error-50:    #fef2f2;
    --error-500:   #ef4444;
    --error-600:   #dc2626;
    --info-50:     #ecfeff;
    --info-500:    #06b6d4;
    --info-600:    #0891b2;

    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --angkatan-2023: #3b82f6;
    --angkatan-2024: #14b8a6;
    --angkatan-2025: #f59e0b;
    --angkatan-2026: #10b981;
    --angkatan-lain: #6b7280;

    --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-md: 0 4px 12px -2px rgba(16, 24, 40, .08), 0 2px 6px -2px rgba(16, 24, 40, .04);
    --shadow-lg: 0 16px 40px -8px rgba(16, 24, 40, .12), 0 4px 12px -4px rgba(16, 24, 40, .06);
    --shadow-glow: 0 12px 32px -8px rgba(16, 185, 129, .35);
    --radius-sm: 10px;
    --radius:    16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-800);
    background: #f0fdf4;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ============================================================
   CONNECTION STATUS INDICATOR
   ============================================================ */
.conn-status {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: white;
    border: 1px solid;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    transition: all .3s ease;
    opacity: .85;
    user-select: none;
}
.conn-status:hover { opacity: 1; }
.conn-status .conn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}
.conn-status.online {
    color: var(--primary-700);
    border-color: var(--primary-200);
    background: var(--primary-50);
}
.conn-status.online .conn-dot { background: var(--primary-500); }
.conn-status.offline {
    color: var(--gray-500);
    border-color: var(--gray-200);
    background: var(--gray-50);
}
.conn-status.offline .conn-dot { background: var(--gray-400); animation: none; }
.conn-status.reconnecting {
    color: var(--warning-600);
    border-color: #fed7aa;
    background: var(--warning-50);
}
.conn-status.reconnecting .conn-dot { background: var(--warning-500); }

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
    50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ============================================================
   SITE WRAPPER
   ============================================================ */
.site-wrapper { position: relative; overflow: hidden; min-height: 100vh; }

.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 10% 0%,  rgba(16, 185, 129, .18), transparent 60%),
        radial-gradient(ellipse 50% 60% at 90% 20%, rgba(45, 212, 191, .15), transparent 60%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(163, 230, 53, .12), transparent 60%);
}

.leaves-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.leaves-bg .leaf {
    position: absolute;
    font-size: 22px;
    color: rgba(16, 185, 129, .18);
    animation: floatLeaf linear infinite;
}
@keyframes floatLeaf {
    0%   { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(16, 185, 129, .12);
    transition: all .3s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .875rem 0;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .875rem;
    text-decoration: none;
    color: inherit;
}
.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-500), var(--teal-500));
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px -4px rgba(16, 185, 129, .5);
    overflow: hidden;
    flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: white; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-top {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary-600);
    margin-bottom: 2px;
}
.logo-text h1 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -.01em;
}
.logo-text h1 em { font-style: normal; color: var(--primary-600); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.375rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: .9375rem;
    cursor: pointer;
    text-decoration: none;
    transition: all .22s cubic-bezier(.4, 0, .2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 4px 12px -2px rgba(16, 185, 129, .4);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -4px rgba(16, 185, 129, .5);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
}
.btn-ghost {
    background: rgba(255, 255, 255, .8);
    color: var(--gray-700);
    border: 1.5px solid rgba(16, 185, 129, .2);
}
.btn-ghost:hover { background: white; border-color: var(--primary-400); color: var(--primary-700); }
.btn-light {
    background: white;
    color: var(--primary-700);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .25);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(0, 0, 0, .3); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; border-radius: 14px; }
.btn-glow { animation: btnGlow 2.4s ease-in-out infinite; }
@keyframes btnGlow {
    0%, 100% { box-shadow: 0 4px 12px -2px rgba(16, 185, 129, .4), 0 0 0 0 rgba(16, 185, 129, .35); }
    50%      { box-shadow: 0 10px 24px -4px rgba(16, 185, 129, .5), 0 0 0 8px rgba(16, 185, 129, 0); }
}
.btn:disabled {
    background: var(--gray-200) !important;
    color: var(--gray-500) !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 4rem 0 5rem; }
.hero-split {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 3rem;
    align-items: center;
}
.hero-text { position: relative; z-index: 1; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4375rem .875rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.pill-green { background: rgba(16, 185, 129, .12); color: var(--primary-700); border: 1px solid rgba(16, 185, 129, .25); }
.pill-emerald { background: linear-gradient(135deg, var(--primary-500), var(--teal-500)); color: white; border: none; }
.pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .2);
    animation: pulseDot 1.8s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.03em;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--teal-500) 50%, var(--lime-500) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero-desc {
    font-size: 1.0625rem;
    color: var(--gray-600);
    max-width: 34rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-desc strong { color: var(--primary-700); font-weight: 700; }

.countdown {
    display: flex;
    gap: .75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.cd-item {
    background: white;
    border: 1px solid var(--primary-100);
    border-radius: var(--radius);
    padding: .875rem 1.125rem;
    text-align: center;
    min-width: 78px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.cd-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cd-num {
    display: block;
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--primary-700);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
    margin-bottom: 4px;
}
.cd-lbl {
    font-size: .6875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: .08em;
}

.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-note {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .875rem;
    border-radius: 10px;
    background: rgba(255, 251, 235, .7);
    border: 1px solid rgba(245, 158, 11, .25);
    color: #92400e;
    font-size: .8125rem;
    font-weight: 500;
}
.hero-note i { color: #d97706; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 500px; }
.dna-scene { position: relative; width: 100%; max-width: 340px; animation: floatSlow 6s ease-in-out infinite; }
@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}
.dna-svg { width: 100%; height: auto; filter: drop-shadow(0 20px 40px rgba(16, 185, 129, .2)); }
.float-leaf {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: white;
    color: var(--primary-600);
    box-shadow: var(--shadow-md);
    font-size: 1.125rem;
    animation: floatChip 5s ease-in-out infinite;
}
.leaf-1 { top: 5%;  right: -10%; animation-delay: 0s;   color: var(--primary-500); }
.leaf-2 { top: 45%; left: -15%;  animation-delay: .8s;  color: var(--lime-500); }
.leaf-3 { bottom: 15%; right: -5%; animation-delay: 1.4s; color: var(--teal-500); }
.leaf-4 { top: 20%; left: -5%;  animation-delay: .4s;  color: var(--teal-600); }
.leaf-5 { bottom: 5%; left: 15%; animation-delay: 1.2s; color: var(--primary-700); }
@keyframes floatChip {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-10px) rotate(3deg); }
}

.wave-divider {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    line-height: 0;
    pointer-events: none;
}
.wave-divider svg { width: 100%; height: 60px; display: block; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { position: relative; padding: 4rem 0; z-index: 1; }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem .875rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, .1);
    color: var(--primary-700);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--gray-900);
    margin-bottom: .75rem;
    line-height: 1.2;
}
.section-head p { color: var(--gray-600); font-size: 1.0625rem; }

/* ============================================================
   STATS
   ============================================================ */
.stats-section { background: rgba(255, 255, 255, .55); backdrop-filter: blur(8px); }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}
.stat-card {
    background: white;
    border: 1px solid rgba(16, 185, 129, .1);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), var(--teal-500), var(--lime-500));
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-200); }
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
    color: var(--primary-700);
    display: grid;
    place-items: center;
    margin: 0 auto .875rem;
    font-size: 1.25rem;
}
.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: .375rem;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--primary-700), var(--teal-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ============================================================
   GRID & CARDS
   ============================================================ */
.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}
.feature-card { padding: 1.75rem; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.feature-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); margin-bottom: 1rem; }

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.375rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px -6px currentColor;
}
.feature-icon.teal    { background: linear-gradient(135deg, var(--teal-400), var(--teal-600)); }
.feature-icon.emerald { background: linear-gradient(135deg, var(--primary-400), var(--primary-600)); }
.feature-icon.lime    { background: linear-gradient(135deg, var(--lime-400), var(--lime-500)); }

.meta-list { list-style: none; }
.meta-list li {
    display: flex;
    justify-content: space-between;
    padding: .625rem .875rem;
    border-radius: 10px;
    margin-bottom: .5rem;
    background: var(--gray-50);
    font-size: .875rem;
}
.meta-list li span { color: var(--gray-500); font-weight: 500; }
.meta-list li strong { color: var(--primary-700); font-weight: 700; }

.big-stat {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: .5rem;
    background: linear-gradient(135deg, var(--primary-600), var(--teal-500));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.feature-desc { font-size: .875rem; color: var(--gray-600); }

.steps { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.steps li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9375rem;
    color: var(--gray-700);
    font-weight: 500;
}
.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--teal-500));
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: .8125rem;
    flex-shrink: 0;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { padding: 4rem 0; }
.cta-card {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-600) 45%, var(--teal-600) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 48px -16px rgba(4, 120, 87, .4);
}
.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .15), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(163, 230, 53, .2), transparent 45%);
    pointer-events: none;
}
.cta-text { position: relative; z-index: 1; }
.cta-text h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: white; margin-bottom: .5rem; letter-spacing: -.02em; }
.cta-text p { color: rgba(255, 255, 255, .85); font-size: 1rem; }
.cta-card .btn { position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: linear-gradient(180deg, transparent, rgba(6, 78, 59, .06));
    padding: 2.5rem 0 2rem;
    border-top: 1px solid rgba(16, 185, 129, .12);
    position: relative;
    z-index: 1;
}
.footer-content { display: flex; flex-direction: column; gap: 1.25rem; align-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: .875rem; }
.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--primary-100);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 6px;
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-logo i { color: var(--primary-600); font-size: 1.25rem; }
.footer-brand strong { display: block; color: var(--gray-900); font-weight: 700; font-size: .9375rem; }
.footer-brand span { display: block; color: var(--gray-500); font-size: .8125rem; }
.footer-copy { color: var(--gray-600); font-size: .875rem; line-height: 1.6; }
.footer-copy .dim { color: var(--gray-500); font-size: .8125rem; }

/* ============================================================
   AUTH / LOGIN / SUCCESS
   ============================================================ */
.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    position: relative;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    overflow: hidden;
}
.auth-card, .success-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: 0 24px 60px -16px rgba(6, 78, 59, .18), 0 0 0 1px rgba(16, 185, 129, .08);
    animation: authIn .5s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes authIn {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    color: var(--gray-600);
    text-decoration: none;
    font-size: .8125rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: color .2s;
}
.back-link:hover { color: var(--primary-700); }

.auth-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary-500), var(--teal-500));
    display: grid;
    place-items: center;
    margin: 0 auto 1.25rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 12px 24px -8px rgba(16, 185, 129, .5);
    overflow: hidden;
}
.auth-icon img { width: 100%; height: 100%; object-fit: contain; padding: 10px; background: white; }

.auth-card h1 { font-size: 1.75rem; font-weight: 800; text-align: center; letter-spacing: -.02em; color: var(--gray-900); margin-bottom: .375rem; }
.auth-sub { text-align: center; color: var(--gray-500); font-size: .875rem; margin-bottom: 1.75rem; }
.auth-form { margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-label {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-weight: 600;
    font-size: .8125rem;
    color: var(--gray-700);
    margin-bottom: .4375rem;
}
.form-label i { color: var(--primary-600); font-size: .875rem; }

.form-input {
    width: 100%;
    padding: .8125rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    background: white;
    font-family: inherit;
    font-size: .9375rem;
    color: var(--gray-900);
    transition: all .2s ease;
}
.form-input::placeholder { color: var(--gray-400); }
.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.password-wrapper { position: relative; }
.password-wrapper .form-input { padding-right: 3rem; }
.password-toggle {
    position: absolute;
    top: 50%; right: .5rem;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--gray-400);
    cursor: pointer;
    border-radius: 8px;
    display: grid;
    place-items: center;
    transition: all .2s;
}
.password-toggle:hover { color: var(--primary-600); background: var(--primary-50); }

.demo-hint {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-50), rgba(236, 253, 245, .5));
    border: 1px dashed var(--primary-300);
}
.demo-hint-title {
    font-size: .75rem;
    font-weight: 700;
    color: var(--primary-700);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .625rem;
    display: flex;
    align-items: center;
    gap: .375rem;
}
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.demo-grid > div {
    display: flex;
    flex-direction: column;
    padding: .5rem .75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--primary-100);
}
.demo-grid span { font-size: .6875rem; color: var(--gray-500); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; }
.demo-grid code { font-family: 'SF Mono', 'Courier New', monospace; font-size: .875rem; color: var(--primary-700); font-weight: 700; }

.auth-warning {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: 12px;
    background: rgba(255, 251, 235, .8);
    border: 1px solid rgba(245, 158, 11, .25);
    color: #92400e;
    font-size: .8125rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.auth-warning i { color: var(--warning-600); flex-shrink: 0; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: .875rem 1rem;
    border-radius: 12px;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 1rem;
    border: 1px solid;
}
.alert-error   { background: var(--error-50);   border-color: #fecaca; color: #b91c1c; }
.alert-warning { background: var(--warning-50); border-color: #fed7aa; color: #92400e; }
.alert-success { background: var(--success-50); border-color: #bbf7d0; color: #15803d; }
.alert-info    { background: var(--info-50);    border-color: #a5f3fc; color: #0e7490; }

/* ============================================================
   VOTING PAGE
   ============================================================ */
.vote-header { padding: 3rem 0 2rem; }
.vote-title-block { text-align: center; margin-bottom: 2.5rem; }
.vote-title-block h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--gray-900);
    margin: 1rem 0 .75rem;
}
.voter-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--primary-200);
    color: var(--primary-700);
    font-size: .8125rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Candidate card */
.candidate-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-100);
    overflow: hidden;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}
.candidate-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--teal-500), var(--lime-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.candidate-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-200); }
.candidate-card:hover::before { transform: scaleX(1); }
.candidate-card.selected {
    border-color: var(--primary-500);
    background: linear-gradient(180deg, var(--primary-50), white);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12), var(--shadow-lg);
}
.candidate-card.selected::before { transform: scaleX(1); }

.candidate-photo-wrapper {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
    position: relative;
}
.candidate-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    min-width: 3rem;
    padding: .5rem .875rem;
    background: linear-gradient(135deg, var(--primary-600), var(--teal-600));
    color: white;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px -4px rgba(6, 95, 70, .4);
    border: 2px solid white;
}
.candidate-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    border: 4px solid white;
    box-shadow: 0 12px 24px -8px rgba(16, 185, 129, .35);
    transition: transform .3s;
}
.candidate-card:hover .candidate-avatar { transform: scale(1.05); }
.candidate-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -.01em;
    margin-bottom: .25rem;
}
.candidate-meta {
    font-size: .8125rem;
    color: var(--gray-500);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.candidate-wakil {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem .75rem;
    background: linear-gradient(135deg, var(--primary-50), rgba(236, 253, 245, .5));
    border: 1px solid var(--primary-200);
    border-radius: 8px;
    font-size: .8125rem;
    color: var(--gray-700);
    font-weight: 500;
    margin-top: .5rem;
}
.candidate-wakil i { color: var(--primary-600); }
.candidate-wakil strong { color: var(--primary-800); font-weight: 700; }

.badge-angkatan {
    display: inline-block;
    padding: .1875rem .5rem;
    border-radius: 6px;
    font-size: .6875rem;
    font-weight: 700;
    color: white;
    letter-spacing: .02em;
}
.badge-angkatan[data-angkatan="2023"] { background: var(--angkatan-2023); }
.badge-angkatan[data-angkatan="2024"] { background: var(--angkatan-2024); }
.badge-angkatan[data-angkatan="2025"] { background: var(--angkatan-2025); }
.badge-angkatan[data-angkatan="2026"] { background: var(--angkatan-2026); }
.badge-angkatan[data-angkatan="Lainnya"],
.badge-angkatan[data-angkatan="Unknown"] { background: var(--angkatan-lain); }

.candidate-content { padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.visi-misi-section { flex: 1; margin-bottom: 1.25rem; }
.visi-misi-section h4 {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .375rem;
}
.visi-misi-section h4.visi-title { color: var(--primary-700); }
.visi-misi-section h4.misi-title { color: var(--teal-600); margin-top: 1rem; }
.visi-misi-section .visi-text {
    font-size: .875rem;
    color: var(--gray-700);
    line-height: 1.65;
    padding: .875rem 1rem;
    background: linear-gradient(135deg, var(--primary-50), rgba(236, 253, 245, .4));
    border-radius: 12px;
    border-left: 3px solid var(--primary-500);
}
.visi-misi-section ol { padding-left: 0; list-style: none; counter-reset: misi; }
.visi-misi-section ol li {
    font-size: .875rem;
    color: var(--gray-700);
    line-height: 1.55;
    padding: .5rem 0 .5rem 1.75rem;
    position: relative;
    counter-increment: misi;
}
.visi-misi-section ol li::before {
    content: counter(misi);
    position: absolute;
    left: 0;
    top: .5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ccfbf1;
    color: var(--teal-700);
    font-size: .6875rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.candidate-select-btn {
    width: 100%;
    padding: .8125rem;
    font-size: .9375rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all .2s;
}
.candidate-card.selected .candidate-select-btn {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    border: none;
    box-shadow: 0 8px 20px -6px rgba(16, 185, 129, .5);
}

/* Submit panel */
.submit-panel {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 2px solid var(--primary-200);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(135deg, white, var(--primary-50));
}
.submit-info { min-width: 0; }
.submit-label {
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary-700);
    margin-bottom: .5rem;
}
.empty-selection {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--gray-500);
    font-size: .9375rem;
    font-weight: 500;
}
.empty-selection i { color: var(--gray-400); font-size: 1.125rem; }
.selected-pill {
    display: flex;
    align-items: center;
    gap: .875rem;
    flex-wrap: wrap;
}
.selected-pill .num {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-600), var(--teal-600));
    color: white;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.125rem;
    flex-shrink: 0;
}
.selected-pill .name { font-weight: 700; color: var(--gray-900); font-size: 1.0625rem; }
.selected-pill .nim { font-size: .8125rem; color: var(--gray-500); font-weight: 500; }
.submit-action { text-align: right; }
.submit-help { font-size: .75rem; color: var(--gray-500); margin-top: .5rem; }

/* ============================================================
   SUCCESS
   ============================================================ */
.success-card { text-align: center; max-width: 480px; }
.success-badge {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
    color: var(--primary-600);
    animation: bounceIn .6s cubic-bezier(.2, .9, .3, 1.2);
}
.success-badge svg { width: 100%; height: 100%; }
.success-badge .success-ring { animation: drawRing 1s ease forwards; }
.success-badge .success-check { stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawCheck .5s .4s ease forwards; }
@keyframes drawRing { to { stroke-dashoffset: 289; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
@keyframes bounceIn {
    from { opacity: 0; transform: scale(.6); }
    to   { opacity: 1; transform: scale(1); }
}
.success-card h1 { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); letter-spacing: -.02em; margin-bottom: .5rem; }
.success-sub { color: var(--gray-600); font-size: .9375rem; margin-bottom: 1.5rem; line-height: 1.6; }
.receipt {
    text-align: left;
    background: linear-gradient(135deg, var(--primary-50), white);
    border: 1px solid var(--primary-200);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: .875rem;
    color: var(--gray-700);
    line-height: 1.75;
}
.receipt strong { color: var(--primary-700); font-weight: 700; }
.receipt i { color: var(--primary-600); }
.success-notes {
    text-align: left;
    background: var(--info-50);
    border: 1px solid #a5f3fc;
    border-radius: 12px;
    padding: .875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: .8125rem;
    color: #0e7490;
    display: flex;
    flex-direction: column;
    gap: .375rem;
}
.success-notes div { display: flex; align-items: center; gap: .5rem; }
.success-notes i { width: 1rem; text-align: center; }

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(6, 78, 59, .55);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    z-index: 1000;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 32px 80px -20px rgba(6, 78, 59, .4);
    transform: scale(.94) translateY(10px);
    transition: transform .3s cubic-bezier(.2, .9, .3, 1.1);
}
.modal.active .modal-content { transform: scale(1) translateY(0); }
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all .2s;
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-900); }
.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: white;
}
.modal-icon.warn { background: linear-gradient(135deg, var(--warning-500), var(--warning-600)); }
.modal-title { font-size: 1.25rem; font-weight: 800; color: var(--gray-900); margin-bottom: .5rem; letter-spacing: -.01em; }
.modal-desc { font-size: .875rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1.25rem; }
.modal-desc strong { color: var(--error-600); }
#modal-candidate-info {
    padding: 1rem;
    background: var(--primary-50);
    border-radius: 12px;
    border: 1px solid var(--primary-200);
    margin-bottom: 1.25rem;
}
.modal-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }
.modal-actions .btn { flex: 1 1 auto; min-width: 120px; }

/* ============================================================
   LOADING
   ============================================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600), var(--teal-600));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .6s ease, visibility .6s ease;
}
.loading-screen.hidden { opacity: 0; visibility: hidden; }
.dna-loader {
    display: flex;
    gap: 6px;
    margin-bottom: 2rem;
    height: 60px;
    align-items: center;
}
.dna-loader span {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    animation: dnaBounce 1.2s ease-in-out infinite;
}
.dna-loader span:nth-child(1) { animation-delay: 0s; }
.dna-loader span:nth-child(2) { animation-delay: .1s; background: var(--lime-300); }
.dna-loader span:nth-child(3) { animation-delay: .2s; }
.dna-loader span:nth-child(4) { animation-delay: .3s; background: var(--lime-300); }
.dna-loader span:nth-child(5) { animation-delay: .4s; }
@keyframes dnaBounce {
    0%, 100% { transform: translateY(0) scale(1); opacity: .5; }
    50%      { transform: translateY(-16px) scale(1.3); opacity: 1; }
}
.loading-text { color: white; font-size: 1.0625rem; font-weight: 600; margin-bottom: 1.25rem; letter-spacing: -.01em; }
.loading-bar { width: 220px; height: 4px; background: rgba(255, 255, 255, .2); border-radius: 999px; overflow: hidden; }
.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, white, var(--lime-300));
    border-radius: 999px;
    width: 0%;
    animation: loadBar 1.8s ease-in-out infinite;
}
@keyframes loadBar {
    0%   { width: 0%; }
    60%  { width: 100%; }
    100% { width: 100%; }
}

/* ============================================================
   SPINNER
   ============================================================ */
.spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: -2px;
    margin-right: .25rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hero-split { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .hero-text { order: 1; }
    .hero-visual { order: 2; min-height: auto; max-width: 280px; margin: 0 auto; }
    .hero-desc { margin-left: auto; margin-right: auto; }
    .hero-cta { justify-content: center; }
    .countdown { justify-content: center; }
    .cta-card { grid-template-columns: 1fr; text-align: center; padding: 2rem; }
    .submit-panel { grid-template-columns: 1fr; }
    .submit-action { text-align: left; }
}

@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    .header-content { gap: .75rem; }
    .logo-text h1 { font-size: .875rem; }
    .brand-top { font-size: .625rem; }
    .logo-icon { width: 38px; height: 38px; }
    .hero { padding: 2rem 0 3rem; }
    .hero-title { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: .875rem; }
    .stat-card { padding: 1.25rem .875rem; }
    .stat-number { font-size: 1.75rem; }
    .stat-icon { width: 40px; height: 40px; font-size: 1rem; margin-bottom: .625rem; }
    .section { padding: 3rem 0; }
    .section-head { margin-bottom: 2rem; }
    .cta-card { padding: 1.5rem; border-radius: 20px; }
    .auth-card, .success-card { padding: 1.5rem; border-radius: 20px; }
    .auth-card h1 { font-size: 1.5rem; }
    .candidates-grid { grid-template-columns: 1fr; }
    .candidate-photo-wrapper { padding: 1.5rem 1rem .75rem; }
    .candidate-avatar { width: 80px; height: 80px; font-size: 1.625rem; }
    .candidate-number { font-size: 1rem; padding: .375rem .625rem; min-width: 2.5rem; }
    .demo-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 1.5rem; }
    .float-leaf { width: 40px; height: 40px; font-size: .9375rem; }
    .conn-status .conn-label { display: none; }
    .conn-status { padding: 6px; }
}

@media (max-width: 420px) {
    .stats-grid { grid-template-columns: 1fr; }
    .countdown { gap: .5rem; }
    .cd-item { padding: .625rem .75rem; min-width: 64px; }
    .cd-num { font-size: 1.25rem; }
    .cd-lbl { font-size: .625rem; }
    .hero-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}