/* ==========================================================================
   LOGINPAGE 25 - CLEAN MEDICAL CARE (Klinik & Layanan Kesehatan)
   ========================================================================== */
:root {
  --bg: #f0f9f8;
  --white: #ffffff;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-soft: #ccfbf1;
  --sky: #0284c7;
  --rose: #e11d48;
  --ink: #0f172a;
  --sub: #475569;
  --muted: #64748b;
  --border: #d1fae5;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--ink); min-height: 100vh; line-height: 1.5; }
#app-loader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; transition: opacity 0.3s, visibility 0.3s; }
#app-loader.fade-out { opacity: 0; visibility: hidden; }
.med-spinner { width: 36px; height: 36px; border: 3px solid #99f6e4; border-top-color: var(--teal); border-radius: 50%; animation: spin 0.75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.med-alert-strip {
  background: var(--teal-dark); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 8px 16px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.med-shell { width: 100%; max-width: 920px; margin: 0 auto; padding: 20px 16px 48px; }
.med-shell.centered { max-width: 440px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }

.med-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; margin-bottom: 18px; box-shadow: 0 8px 24px -10px rgba(13,148,136,0.14);
}
.med-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.med-logo { width: 42px; height: 42px; border-radius: 12px; background: #f0fdfa; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.med-logo img { width: 26px; height: 26px; object-fit: contain; }
.med-title { font-size: 16px; font-weight: 800; color: var(--teal-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.med-sub { font-size: 11px; color: var(--sub); }
.med-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9999px; background: #ecfdf5; border: 1px solid #a7f3d0; color: #059669; font-size: 11px; font-weight: 700; flex-shrink: 0; }

.med-slider {
  position: relative; width: 100%; height: 210px; border-radius: 20px; overflow: hidden;
  margin-bottom: 18px; box-shadow: 0 16px 36px -14px rgba(13,148,136,0.28); background: #0f766e;
}
@media (min-width: 780px) { .med-slider { height: 260px; } }
.med-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease, transform 6s ease; transform: scale(1.04); }
.med-slide.active { opacity: 1; transform: scale(1); }
.med-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.med-slide-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,118,110,0.15) 0%, rgba(15,23,42,0.8) 100%); z-index: 2; }
.med-slide-overlay { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 3; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.med-slide-dots { display: flex; gap: 6px; }
.med-dot-btn { width: 20px; height: 5px; border-radius: 9999px; border: none; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.25s; }
.med-dot-btn.active { width: 32px; background: #fff; }

.med-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 18px; }
@media (min-width: 780px) { .med-grid { grid-template-columns: 390px minmax(0,1fr); align-items: start; } }

.med-card { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: 0 14px 32px -14px rgba(13,148,136,0.16); margin-bottom: 16px; }
.med-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: #f0fdfa; color: var(--teal-dark); font-size: 10.5px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.med-hero-title { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.med-hero-sub { font-size: 12.5px; color: var(--sub); margin-bottom: 14px; }

.med-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; }
.med-tab-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: none; border-radius: 9px; background: transparent; font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--sub); cursor: pointer; }
.med-tab-btn.active { background: var(--teal); color: #fff; }

.med-field { margin-bottom: 12px; }
.med-label { display: block; font-size: 11.5px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.med-input-wrap { position: relative; display: flex; align-items: center; }
.med-input-icon { position: absolute; left: 14px; color: var(--teal); font-size: 14px; pointer-events: none; }
.med-input { width: 100%; height: 44px; padding: 0 42px 0 40px; border-radius: 10px; background: #f8fafc; border: 1px solid #cbd5e1; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 600; outline: none; }
.med-input:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,148,136,0.14); }
.med-eye-btn { position: absolute; right: 10px; background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; }

.btn-med-primary { width: 100%; height: 44px; border: none; border-radius: 10px; background: var(--teal); color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-med-primary:hover { background: var(--teal-dark); }
.btn-med-secondary { width: 100%; height: 42px; border: 1px solid #99f6e4; border-radius: 10px; background: #f0fdfa; color: var(--teal-dark); font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-med-danger { width: 100%; height: 44px; border: 1px solid #fecdd3; border-radius: 10px; background: #fff1f2; color: var(--rose); font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

.med-scanner { background: #f0fdfa; border: 1px dashed #5eead4; border-radius: 14px; padding: 16px; text-align: center; margin-bottom: 12px; }
.med-viewfinder { position: relative; width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 14px; background: #fff; border: 1px solid #5eead4; display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 24px; overflow: hidden; }
.med-laser { position: absolute; left: 6px; right: 6px; height: 2px; background: var(--teal); animation: scanLine 2s infinite; }
@keyframes scanLine { 0%, 100% { top: 8px; } 50% { top: 50px; } }
.med-error { display: flex; align-items: center; gap: 8px; padding: 10px 12px; margin-bottom: 12px; border-radius: 10px; background: #fff1f2; border: 1px solid #fecdd3; color: var(--rose); font-size: 12px; font-weight: 600; }
.med-divider { display: flex; align-items: center; gap: 10px; margin: 12px 0 10px; font-size: 11px; color: var(--muted); }
.med-divider::before, .med-divider::after { content: ""; flex: 1; height: 1px; background: #e2e8f0; }

/* Clinic Services Grid */
.poli-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 480px) { .poli-grid { grid-template-columns: 1fr; } }
.poli-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; display: flex; align-items: flex-start; gap: 10px; }
.poli-icon { width: 34px; height: 34px; border-radius: 9px; background: #ccfbf1; color: var(--teal-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }

.med-faq-item { background: var(--white); border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.med-faq-btn { width: 100%; background: none; border: none; padding: 11px 14px; font-family: inherit; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.med-faq-item.open .med-faq-btn i { transform: rotate(180deg); color: var(--teal); }
.med-faq-ans { display: none; padding: 0 14px 12px; font-size: 11.5px; color: var(--sub); }
.med-faq-item.open .med-faq-ans { display: block; }

.med-meta-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; font-size: 11.5px; display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.med-meta-row { display: flex; justify-content: space-between; align-items: center; }
.med-meta-row span:first-child { color: var(--sub); }
.med-meta-row span:last-child { font-family: var(--font-mono); font-weight: 700; }
.med-footer { text-align: center; font-size: 11px; color: var(--muted); margin-top: 14px; }

.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 50px; height: 50px; border-radius: 50%; background: var(--teal); color: #fff; border: none; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; box-shadow: 0 10px 24px rgba(13,148,136,0.35); }
