
:root {
  --bg: #eef6ff;
  --card: #ffffff;
  --text: #0b1b34;
  --muted: #64748b;
  --blue: #2563eb;
  --blue2: #0f55e8;
  --green: #16a34a;
  --orange: #ea580c;
  --red: #dc2626;
  --line: rgba(15, 35, 70, .10);
  --shadow: 0 18px 50px rgba(8,24,54,.10);
  --radius: 22px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(37,99,235,.12), transparent 30%),
              radial-gradient(circle at top right, rgba(20,184,166,.12), transparent 30%),
              linear-gradient(135deg, #f8fbff, var(--bg));
  color: var(--text);
}
.hidden { display: none !important; }
.login-screen { min-height: 100vh; padding: 36px; }
.login-shell {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}
.login-hero, .login-card, .login-info-grid > div, .panel, .form-card, .notice-card, .request-card, .service-card, .stat-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}
.login-hero {
  padding: 44px;
  min-height: 520px;
  background:
    linear-gradient(135deg, rgba(8,24,54,.82), rgba(37,99,235,.48)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'%3E%3Crect width='1200' height='800' fill='%23dff0ff'/%3E%3Cpath d='M0 570 C200 500 360 590 560 540 C780 485 970 550 1200 510 L1200 800 L0 800 Z' fill='%2365a565'/%3E%3Crect x='680' y='300' width='300' height='190' rx='10' fill='%23fff'/%3E%3Cpath d='M650 305 L830 195 L1010 305 Z' fill='%234a5b73'/%3E%3Crect x='210' y='450' width='440' height='120' rx='16' fill='%230f223d'/%3E%3Ctext x='430' y='525' text-anchor='middle' font-family='Georgia' font-size='52' fill='%23e7d5a8'%3ESERVICE%3C/text%3E%3C/svg%3E") center/cover;
  color: white;
}
.login-hero h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: .95; letter-spacing: -.06em; margin: 18px 0; max-width: 780px; }
.login-hero p { color: rgba(255,255,255,.86); font-size: 1.08rem; max-width: 680px; }
.hero-badge { display: inline-flex; padding: 10px 14px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 800; }
.hero-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 38px; }
.hero-cards div { padding: 16px; background: rgba(255,255,255,.14); border-radius: 18px; }
.hero-cards strong, .hero-cards span { display: block; }
.hero-cards span { color: rgba(255,255,255,.75); margin-top: 4px; }
.login-card { padding: 30px; align-self: center; }
.login-card h2 { margin-top: 0; font-size: 2rem; letter-spacing: -.04em; }
label { display:block; font-weight: 800; margin: 14px 0 6px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(37,99,235,.55); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
button {
  border: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: white;
  font-weight: 900;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
}
button.secondary { background: #e8eef8; color: var(--text); }
button.danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }
button.small { padding: 8px 10px; font-size: .88rem; }
button:hover { transform: translateY(-1px); }
.muted { color: var(--muted); }
.message { font-weight: 800; min-height: 22px; }
.message.error { color: var(--red); }
.sample-logins { margin-top: 22px; display: grid; gap: 8px; }
.sample-logins code { background: #f1f5f9; padding: 8px; border-radius: 10px; font-size: .85rem; }
.login-info-grid {
  max-width: 1180px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.login-info-grid > div { padding: 18px; }
.login-info-grid h3 { margin-top: 0; }
.app-shell { padding: 24px; max-width: 1280px; margin: 0 auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px;
  background: rgba(255,255,255,.92);
  border-radius: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.75);
}
.topbar h1 { margin: 0; letter-spacing: -.04em; }
.topbar p { margin: 4px 0 0; color: var(--muted); font-weight: 700; }
.top-actions { display: flex; gap: 10px; }
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
  padding: 10px;
  background: rgba(255,255,255,.88);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.tabs button { background: transparent; color: #40516a; box-shadow: none; }
.tabs button.active { background: linear-gradient(135deg, var(--blue), var(--blue2)); color: #fff; }
.page { display: none; }
.page.active { display: block; }
.page-head { margin: 26px 0 16px; }
.page-head h2 { margin: 0; font-size: 2rem; letter-spacing: -.04em; }
.stat-grid, .service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card { padding: 20px; }
.stat-card span { font-size: 2.4rem; font-weight: 950; color: var(--blue); }
.stat-card p { margin: 4px 0 0; color: var(--muted); font-weight: 800; }
.panel, .form-card { padding: 22px; margin-top: 16px; }
.workflow { display: flex; flex-wrap: wrap; gap: 10px; align-items:center; }
.workflow div { background: #f1f5f9; padding: 12px 14px; border-radius: 14px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.full { grid-column: 1 / -1; }
.card-list { display: grid; gap: 14px; }
.request-card, .service-card { padding: 18px; }
.request-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.badge { display:inline-flex; border-radius: 999px; padding: 7px 10px; font-weight: 900; font-size: .8rem; background: #e0f2fe; color: #075985; }
.badge.New { background: #e0f2fe; color: #075985; }
.badge.Scheduled { background: #dbeafe; color: #1d4ed8; }
.badge.Assigned { background: #ede9fe; color: #6d28d9; }
.badge.InProgress { background: #ffedd5; color: #c2410c; }
.badge.Completed { background: #dcfce7; color: #15803d; }
.badge.Cancelled { background: #fee2e2; color: #b91c1c; }
.request-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; color: var(--muted); margin: 12px 0; }
.admin-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.sync-status { padding: 12px 14px; border-radius: 14px; background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; font-weight: 800; margin: 10px 0; }
.sync-status.error { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
footer { margin: 24px 0 0; color: var(--muted); text-align: center; padding: 18px; }
@media (max-width: 900px) {
  .login-screen, .app-shell { padding: 16px; }
  .login-shell { grid-template-columns: 1fr; }
  .login-hero { min-height: 420px; padding: 28px; }
  .hero-cards, .login-info-grid, .stat-grid, .service-grid, .form-grid, .admin-controls { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tabs button { white-space: nowrap; }
  .request-meta { grid-template-columns: 1fr; }
}
