* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: grid; grid-template-columns: 236px 1fr; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #173044; background: #f3f7fa; }
aside { background: #0f5f73; color: #fff; padding: 24px 18px; border-right: 1px solid rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: #d8f1e5; color: #0f5f73; font-weight: 800; }
aside h1 { margin: 0; font-size: 21px; }
aside p { margin: 4px 0 0; color: rgba(255,255,255,.68); font-size: 13px; }
aside button { width: 100%; display: block; margin: 8px 0; padding: 12px 12px; border: 0; border-radius: 7px; color: #fff; background: rgba(255,255,255,.12); text-align: left; cursor: pointer; }
aside button.active, aside button:hover { background: rgba(255,255,255,.24); }
main { padding: 24px; overflow: auto; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
h2, h3 { margin: 0 0 16px; }
.panel { background: #fff; border: 1px solid #dbe7ed; border-radius: 8px; padding: 20px; box-shadow: 0 8px 28px rgba(24,48,68,.06); }
.login-wrap { min-height: calc(100vh - 48px); display: grid; place-items: center; }
.login-card { width: min(860px, 100%); display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; background: #fff; border: 1px solid #dbe7ed; border-radius: 8px; box-shadow: 0 18px 48px rgba(24,48,68,.12); }
.login-copy { padding: 44px; background: #eaf5f2; border-right: 1px solid #dbe7ed; }
.login-copy span { color: #0f5f73; font-weight: 800; font-size: 13px; }
.login-copy h2 { margin-top: 14px; font-size: 34px; color: #0f5f73; }
.login-copy p { max-width: 360px; color: #506d7a; line-height: 1.8; }
.login-form { padding: 42px; }
.login-form input, .login-form button { width: 100%; margin-bottom: 14px; }
.form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
input, textarea { border: 1px solid #c7d8e2; border-radius: 6px; padding: 10px 12px; min-width: 180px; font: inherit; background: #fff; outline-color: #0f5f73; }
select { border: 1px solid #c7d8e2; border-radius: 6px; padding: 9px 10px; font: inherit; background: #fff; outline-color: #0f5f73; }
textarea { display: block; width: 100%; margin: 8px 0 12px; }
label { display: block; margin: 12px 0 6px; font-weight: 700; }
button { border: 0; border-radius: 6px; padding: 10px 14px; background: #0f5f73; color: #fff; cursor: pointer; font: inherit; }
button.secondary { background: #edf5f8; color: #0f5f73; }
button.danger { background: #b33a3a; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; background: #fff; }
th, td { border-bottom: 1px solid #e5eef3; padding: 11px 10px; text-align: left; vertical-align: top; }
th { color: #607987; font-size: 13px; background: #f8fbfd; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.card { border: 1px solid #e2edf3; border-radius: 8px; padding: 18px; background: #f9fcfd; }
.card strong { display: block; margin-top: 8px; font-size: 30px; color: #0f5f73; }
.muted, #message { color: #607987; }
.pill { display: inline-flex; align-items: center; min-width: 54px; justify-content: center; border-radius: 999px; padding: 5px 10px; font-size: 13px; font-weight: 700; }
.pill.patient { color: #0f5f73; background: #e7f4f6; }
.pill.nurse { color: #197346; background: #e8f7ef; }
@media (max-width: 760px) { body { grid-template-columns: 1fr; } aside { position: static; } .login-card { grid-template-columns: 1fr; } .login-copy { border-right: 0; border-bottom: 1px solid #dbe7ed; } }
