:root {
  font-family: Inter, system-ui, sans-serif;
  color: #12273a;
  background: #f0f5f5;
  --muted: #4b6273;
  --teal: #006c61;
  --line: #d8e4e6;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
p { line-height: 1.55; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #1ba18e; outline-offset: 3px; }
h1:focus { outline: none; }
.wrap { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.bar-content, .brand { display: flex; align-items: center; }
.bar-content { justify-content: space-between; gap: 14px; min-height: 72px; }
.brand { gap: 10px; color: #152d42; font-weight: 750; text-decoration: none; }
.brand svg { flex: none; color: var(--teal); }
.demo-label, .status { font-size: .875rem; font-weight: 650; border-radius: 30px; padding: 5px 11px; white-space: nowrap; }
.demo-label { background: #e7eff3; color: #345164; }
main.wrap { padding-block: clamp(24px, 5vw, 60px); }
.login { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; gap: 24px; }
.welcome, .account-hero {
  background: radial-gradient(ellipse at 92% 5%, #1b5d63, transparent 67%), #122a44;
  color: #fff;
  border-radius: 22px;
  padding: clamp(24px, 5vw, 52px);
}
.welcome { display: grid; align-content: center; }
h1 { font-size: clamp(2rem, 6vw, 4rem); font-weight: 760; letter-spacing: -.055em; line-height: 1.06; }
.welcome p { max-width: 29ch; color: #d5ebe9; margin-top: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3.5vw, 30px); }
h2 { font-size: 1.15rem; letter-spacing: -.015em; }
.login-card h2 { font-size: 1.5rem; }
form { display: grid; gap: 15px; margin-top: 20px; }
label { display: grid; gap: 7px; font-size: .95rem; font-weight: 650; }
input { width: 100%; min-height: 46px; border: 1px solid #a9bdc5; border-radius: 10px; padding: 10px 12px; color: inherit; }
label small, .muted { color: var(--muted); font-weight: 450; }
.primary, .secondary, .logout { min-height: 42px; border-radius: 10px; padding: 9px 15px; font-size: .9375rem; font-weight: 700; }
.primary { background: var(--teal); color: white; border: 1px solid var(--teal); }
.primary:hover { background: #00594f; }
.secondary { background: #fff; border: 1px solid #abc2c6; color: #005f55; }
.secondary:hover { background: #edf7f4; }
.feedback { color: #a5282d; }
.feedback:empty { display: none; }
.demo-box { background: #edf5f5; border-radius: 12px; margin-top: 22px; padding: 14px; font-size: .9rem; }
.demo-box p { margin-block: 5px 10px; overflow-wrap: anywhere; }
.password-card { max-width: 540px; margin-inline: auto; }
.password-card h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: 12px; }
.account-hero { display: flex; justify-content: space-between; align-items: center; gap: 15px; flex-wrap: wrap; }
.account-hero p { color: #d5ebe9; margin-block: 5px; }
.logout { background: transparent; color: white; border: 1px solid #88b8bb; }
.logout:hover { background: #ffffff18; }
.overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block: 20px; }
.overview strong { display: block; font-size: clamp(1.25rem, 2.4vw, 1.85rem); margin-block: 12px 4px; }
.overview .status { display: inline-block; margin-top: 8px; }
.due { background: #e2f4ed; border-color: #add5c8; }
.paid { background: #e7f5ee; color: #126044; }
.pending { background: #fff1db; color: #774c08; }
.invoice { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr auto; gap: 14px; align-items: center; padding-block: 17px; border-top: 1px solid var(--line); }
.invoice:first-of-type { margin-top: 14px; }
.invoice:last-of-type { padding-bottom: 0; }
.invoice dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.invoice dt { color: var(--muted); font-size: .875rem; }
.invoice dd { font-weight: 650; }
.invoice-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 860px) {
  .invoice { grid-template-columns: 1fr 2fr; }
  .invoice-actions { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .login, .overview, .invoice { grid-template-columns: 1fr; }
  .invoice-actions { grid-column: auto; }
}
