/* Shared artwork for sign-in, registration and the dashboard. */
:root {
  --cashbook-art: url("./cashbook-background.webp");
  --cashbook-night: #0d1831;
}

.cashbook-auth {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  background: linear-gradient(105deg, rgba(9, 19, 41, .88), rgba(12, 26, 57, .46)), var(--cashbook-art) 62% center / cover no-repeat, var(--cashbook-night);
}

.cashbook-auth .shell {
  width: min(100%, 1152px);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 450px);
  align-items: start;
  gap: clamp(24px, 7vw, 108px);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 94px) clamp(16px, 5vw, 66px);
}

.cashbook-auth .cashbook-brand { padding-top: clamp(12px, 6vw, 82px); }
.cashbook-auth .brand { color: #fff; font-size: 21px; }
.cashbook-auth .brand img { width: 48px; height: 48px; }
.cashbook-auth .cashbook-content { min-width: 0; }
.cashbook-auth .card {
  max-width: none;
  padding: clamp(19px, 3.1vw, 34px);
  border: 1px solid #dce6f4;
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(4, 13, 33, .32);
}

.cashbook-auth .card:last-child { margin-bottom: 0; }
.cashbook-auth .card h1 { font-size: clamp(28px, 4vw, 36px); }
.cashbook-auth .form label { min-width: 0; }
.cashbook-auth .form fieldset { min-width: 0; overflow-wrap: anywhere; }

.cashbook-dashboard {
  background: linear-gradient(105deg, rgba(231, 238, 251, .97), rgba(215, 228, 252, .89)), var(--cashbook-art) center / cover fixed no-repeat, #e9eff8;
}
.cashbook-dashboard .layout > aside {
  background: linear-gradient(175deg, rgba(9, 18, 39, .93), rgba(9, 20, 48, .83)), var(--cashbook-art) 48% center / cover no-repeat, var(--cashbook-night);
}
.cashbook-dashboard .hero {
  overflow: hidden;
  background: linear-gradient(100deg, rgba(12, 27, 64, .96), rgba(18, 48, 112, .69)), var(--cashbook-art) 65% 54% / cover no-repeat, #153368;
}
.cashbook-dashboard .hero::before,
.cashbook-dashboard .hero::after { content: none; }

@media (max-width: 720px) {
  .cashbook-auth { align-items: start; background-position: center, 62% top; }
  .cashbook-auth .shell { grid-template-columns: minmax(0, 1fr); max-width: 470px; gap: 12px; padding: 22px 16px 35px; }
  .cashbook-auth .cashbook-brand { padding: 0; }
  .cashbook-auth .brand { margin-bottom: 8px; }
  .cashbook-auth .brand img { width: 42px; height: 42px; }
  .cashbook-dashboard { background-attachment: scroll; }
}

@media print {
  .cashbook-dashboard { background: #fff; }
}
