.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(250, 248, 241, 0.9), rgba(244, 249, 246, 0.94)),
    url("/img/buchhaltung_soll_haben.png") center / cover fixed,
    #fbf8ef;
  color: #1b2a21;
}

.auth-page {
  --ink: #1b2a21;
  --muted: #65736b;
  --line: rgba(37, 63, 48, 0.14);
  --paper: #fffdf8;
  --green: #2c8a57;
  --green-dark: #1f6b43;
  --gold: #b77624;
  --shadow: 0 18px 48px rgba(38, 54, 42, 0.1);
  min-height: 100vh;
  padding: 0 24px 64px;
  overflow: hidden;
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(27, 42, 33, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 33, 0.026) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.auth-header {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.auth-brand,
.auth-header-actions {
  display: flex;
  align-items: center;
}

.auth-brand {
  text-decoration: none;
}

.auth-brand img {
  display: block;
  width: clamp(210px, 24vw, 270px);
  height: auto;
}

.auth-header-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-header-link {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.72);
  text-decoration: none;
  font-weight: 850;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  min-height: min(720px, calc(100vh - 132px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(390px, 0.82fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}

.auth-login-visual,
.auth-login-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-login-visual {
  position: relative;
  min-height: 620px;
}

.auth-login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(19, 34, 26, 0.7));
}

.auth-login-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.auth-visual-card {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-visual-card span {
  display: block;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-visual-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
}

.auth-login-panel {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(26px, 4vw, 44px);
}

.auth-copy,
.auth-form-column {
  align-self: center;
}

.auth-copy {
  padding: clamp(24px, 4vw, 42px);
}

.auth-copy h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  position: relative;
  padding-left: 28px;
  color: #45564b;
  line-height: 1.6;
}

.auth-benefits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.7em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.auth-form-column {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--shadow);
}

.auth-kicker,
.auth-modal-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-login-intro h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
}

.auth-login-intro p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.auth-card {
  width: 100%;
  margin: 8px 0 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.auth-card-head {
  margin-bottom: 20px;
}

.auth-card-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.1;
}

.auth-field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  text-align: left;
}

.auth-field span {
  color: #40564a;
  font-size: 0.86rem;
  font-weight: 850;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(37, 63, 48, 0.18);
  border-radius: 15px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.auth-field input:focus {
  outline: 3px solid rgba(44, 138, 87, 0.16);
  border-color: var(--green);
}

.auth-optional {
  margin: 2px 0 16px;
  border: 1px solid rgba(37, 63, 48, 0.12);
  border-radius: 8px;
  background: #f7faf8;
}

.auth-optional summary {
  padding: 12px 14px;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
}

.auth-optional .auth-field {
  margin: 0;
  padding: 0 14px 14px;
}

.auth-submit,
.auth-reset-submit {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  border-color: transparent;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(44, 138, 87, 0.22);
}

.auth-message,
.auth-switch,
.auth-text-button {
  width: 100%;
  text-align: center;
}

.auth-message {
  min-height: 1.4em;
  margin: 4px 0 0;
  color: #b42318;
  font-weight: 800;
}

.auth-switch {
  margin: 4px 0 0;
  color: var(--muted);
}

.auth-switch a,
.auth-text-button {
  color: var(--green-dark);
  font-weight: 850;
}

.auth-text-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.auth-switch a {
  text-decoration: none;
}

.auth-switch a:hover,
.auth-text-button:hover {
  text-decoration: underline;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 22000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 30, 24, 0.42);
}

.auth-modal[hidden] {
  display: none !important;
}

.auth-modal-card {
  position: relative;
  width: min(480px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fffdf8;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
}

.auth-modal-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
}

.auth-modal-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-modal-message {
  margin-top: 14px;
  min-height: 1.5em;
}

@media (max-width: 940px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-login-visual {
    min-height: 420px;
  }

  .auth-login-intro h1 {
    max-width: 12ch;
  }
}

@media (max-width: 680px) {
  .auth-body {
    background-attachment: scroll;
  }

  .auth-page {
    padding: 0 16px 42px;
  }

  .auth-header {
    display: grid;
    justify-items: center;
    padding-top: 16px;
  }

  .auth-header-actions {
    width: 100%;
    display: grid;
  }

  .auth-header-link {
    width: 100%;
  }

  .auth-shell {
    min-height: auto;
    margin-top: 28px;
  }

  .auth-login-visual {
    min-height: 320px;
    border-radius: 24px;
  }

  .auth-login-panel,
  .auth-card {
    border-radius: 24px;
  }
}
