:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #351440;
  background: #fff5fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; min-height: 100vh; background: linear-gradient(135deg, #fff7fb 0%, #f9e8f2 48%, #f0d8e9 100%); }
button, input { font: inherit; }
button { cursor: pointer; }

.cover-shell { display: grid; place-items: center; min-height: 100vh; padding: 28px; background: radial-gradient(circle at 20% 15%, #ff8fb9 0, transparent 32%), radial-gradient(circle at 85% 90%, #a60058 0, transparent 38%), linear-gradient(135deg, #ff0064, #c90070 58%, #7c174f); }
.cover-card { width: min(680px, 100%); padding: clamp(34px, 8vw, 76px); text-align: center; color: white; border: 1px solid #ffffff66; border-radius: 34px; background: #ffffff1c; box-shadow: 0 32px 90px #4a003b66, inset 0 1px #ffffff55; backdrop-filter: blur(10px); }
.cover-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.cover-logo-image { display: block; width: 128px; height: 128px; object-fit: contain; border: 5px solid #ffffffaa; border-radius: 42px; box-shadow: 0 14px 35px #52003955; }
.cover-card .eyebrow { color: #ffe1ed; }
.cover-card h1 { margin: 14px 0 18px; font-size: clamp(2.3rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -.055em; }
.cover-subtitle { max-width: 500px; margin: 0 auto; color: #ffe9f2; font-size: 1.12rem; line-height: 1.55; }
.cover-divider { width: 72px; height: 4px; margin: 30px auto 18px; border-radius: 99px; background: #fff; }
.cover-note { margin: 0 0 28px; color: #ffd1e4; font-size: .85rem; }
.cover-button { min-width: 230px; color: #d60067; background: white; box-shadow: 0 16px 32px #5a003e45; }
.cover-button:hover { color: white; background: #f60070; }

.page-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 64px; }
.login-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; min-height: 100vh; }
.brand-block { display: flex; align-items: flex-start; gap: 18px; }
.brand-block h1, .welcome-block h1 { margin: 4px 0 8px; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.05em; }
.subtitle, .welcome-block p { color: #75627e; font-size: 1.08rem; line-height: 1.55; margin: 0; }
.brand-mark { display: grid; place-items: center; flex: 0 0 64px; height: 64px; border-radius: 22px; color: white; font-weight: 900; background: linear-gradient(135deg, #ff0064, #a60058); box-shadow: 0 14px 30px #e8006542; }
.brand-mark.small { flex-basis: 38px; height: 38px; border-radius: 13px; font-size: .75rem; }
.brand-logo { display: block; width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; border-radius: 22px; box-shadow: 0 14px 30px #e8006542; }
.brand-logo.small { width: 38px; height: 38px; flex-basis: 38px; border-radius: 13px; box-shadow: none; }
.eyebrow, .card-kicker { margin: 0; color: #f40063; font-weight: 800; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }

.panel, .action-card, .status-card { background: rgba(255,255,255,.9); border: 1px solid #f2d4e3; box-shadow: 0 20px 60px #6b174019; }
.login-panel { padding: clamp(24px, 5vw, 48px); border-radius: 32px; }
.panel-heading h2 { margin: 8px 0; font-size: 2rem; }
.panel-heading p:not(.eyebrow) { color: #75627e; margin-top: 0; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0 18px; }
.role-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; color: #5f4a69; background: #fff6fb; border: 1px solid #efd8e7; border-radius: 17px; transition: .2s; }
.role-card:hover, .role-card.selected { color: #f00063; border-color: #ff2e83; background: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px #f5006320; }
.role-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: white; font-size: .72rem; font-weight: 900; background: #f00063; }
.test-credentials { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #f4fbf8; border: 1px solid #bdebd5; color: #275e48; }
.test-credentials small { display: block; margin-top: 5px; color: #497764; line-height: 1.6; }
.status-dot { width: 10px; height: 10px; margin-top: 5px; flex: 0 0 auto; border-radius: 50%; background: #16b979; box-shadow: 0 0 0 5px #16b97920; }
code { padding: 2px 5px; border-radius: 5px; background: #e6f6ee; }
.form-stack { display: grid; gap: 16px; margin-top: 24px; }
label { display: grid; gap: 8px; color: #55205f; font-weight: 700; }
input { width: 100%; padding: 14px 16px; border: 1px solid #ead6e5; border-radius: 14px; color: #351440; background: #fffaff; outline: none; }
input:focus { border-color: #ff1973; box-shadow: 0 0 0 4px #ff19731c; }
.primary-button, .secondary-button, .toggle-button { border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 850; transition: .2s; }
.primary-button { color: white; background: linear-gradient(100deg, #ff0064, #d90076); box-shadow: 0 12px 24px #f0006330; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 16px 28px #f0006345; }
.secondary-button { color: #d50067; background: #fff0f7; border: 1px solid #ffb2d3; }
.form-error { margin: 0; color: #bd164e; font-weight: 700; }
.demo-note { margin: 22px 0 0; color: #8d7893; font-size: .82rem; line-height: 1.5; }

.dashboard-shell { padding-top: 24px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; background: #fff; border: 1px solid #f0d8e7; border-radius: 18px; box-shadow: 0 12px 35px #6b174014; }
.topbar-brand, .topbar-user { display: flex; align-items: center; gap: 10px; }
.topbar-user { color: #78637f; font-weight: 700; }
.text-button { padding: 0; color: #f00063; font-weight: 800; background: none; border: 0; }
.welcome-block { padding: 70px 4px 30px; max-width: 750px; }
.welcome-block h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.status-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; }
.status-card p { margin: 4px 0 0; color: #776680; }
.status-icon { display: grid; place-items: center; width: 42px; height: 42px; color: white; border-radius: 50%; font-weight: 900; background: #18b878; }
.pill { display: inline-flex; width: fit-content; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.status-card .pill { margin-left: auto; }
.pill.success { color: #08794c; background: #dff9eb; }
.pill.neutral { color: #6a5272; background: #f4ebf4; }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.action-card { min-height: 245px; padding: 24px; border-radius: 22px; }
.action-card h2 { margin: 12px 0 8px; font-size: 1.3rem; }
.action-card p { min-height: 68px; color: #786580; line-height: 1.55; }
.featured { border-color: #ff9bc3; box-shadow: 0 18px 40px #f0006318; }
.toggle-button { display: inline-flex; align-items: center; gap: 10px; color: #7b637f; background: #f0e9f0; }
.toggle-button.active { color: white; background: #16b979; }
.toggle-knob { width: 18px; height: 18px; border-radius: 50%; background: currentColor; box-shadow: inset 0 0 0 4px #fff; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 22px, 600px); padding-top: 24px; }
  .login-shell { display: block; padding-top: 44px; }
  .brand-block { margin-bottom: 28px; }
  .brand-block h1 { font-size: 2.9rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .action-card { min-height: auto; }
  .action-card p { min-height: auto; }
  .topbar-user span { display: none; }
}
