/* Ruhiger Einstieg im gleichen Farbraum wie das Studio. */
.auth-layout { background: #f4f7f6; color: #173d4b; }
.auth-intro { background: radial-gradient(ellipse at 8% 5%, #e1eff0 0, transparent 58%), #eaf2f1; gap: 4rem; }
.auth-brand { color: #173d4b; }
.auth-mark { background: #173d4b; }
.auth-intro h1, .auth-card h2 { font-family: 'Music Room Oxanium', Arial, Helvetica, sans-serif; letter-spacing: -.035em; }
.auth-intro h1 { max-width: 13ch; }
.auth-kicker { color: #526f77; }
.auth-intro p:not(.auth-kicker), .auth-card > p:not(.auth-kicker) { color: #48636c; }
.auth-panel { background: radial-gradient(ellipse at 95% 8%, #e8f1f0, transparent 65%), #f4f7f6; }
.auth-card { background: #fcfdfc; border-color: #d3e0e1; box-shadow: 0 1rem 3rem rgb(23 61 75 / 7%); }
.auth-card:focus-within { border-color: #a7c3c7; box-shadow: 0 1rem 3rem rgb(23 61 75 / 10%); }
.auth-card input { color: #173d4b; border-color: #a9c4cb; caret-color: #a5343e; }
.auth-card input:focus-visible, .auth-card button:focus-visible, .auth-brand:focus-visible, .auth-link:focus-visible { outline: 3px solid #a5343e; outline-offset: 3px; }
.auth-card button { background: #254f5d; color: #fff; border: 1px solid #254f5d; }
.auth-card button:hover { background: #173d4b; border-color: #173d4b; }
.auth-card form[data-auth-entry][data-has-confirm="false"]:valid button[type="submit"],
.auth-card form[data-auth-entry][data-has-confirm="true"][data-password-confirmed="true"]:valid button[type="submit"] { background: #a5343e; border-color: #a5343e; color: #fff; }
.auth-card form[data-auth-entry][data-has-confirm="false"]:valid button[type="submit"]:hover,
.auth-card form[data-auth-entry][data-has-confirm="true"][data-password-confirmed="true"]:valid button[type="submit"]:hover { background: #862733; border-color: #862733; }
.auth-card .auth-secondary { background: #f2f7f6; color: #173d4b; border-color: #b7cfd1; }
.auth-card button:disabled, .auth-card button:disabled:hover {
  opacity: 1; background: #e8eeee; border-color: #c6d5d6; color: #536b72; cursor: not-allowed; box-shadow: none;
}
.auth-link { color: #285e70; }
.auth-personal-link { display: inline-block; font-size: .875rem; margin-top: .3rem; }
.auth-privacy { border-top-color: #d9e5e4; }
@media (max-width:760px) {
  .auth-intro { padding: 1.5rem 1.5rem 1.7rem; gap: 2rem; }
  .auth-intro h1 { font-size: clamp(2.15rem, 9vw, 2.7rem); margin-bottom: .8rem; }
  .auth-intro p:not(.auth-kicker) { line-height: 1.45; }
  .auth-panel { padding: 1rem 1rem 2.5rem; }
}
@media (prefers-reduced-transparency:reduce), (prefers-contrast:more) { .auth-card { background: #fff; } }

/* The invisible copy reserves the final width and height before animation. */
.auth-intro .auth-typed-heading { max-width: 100%; font-size: clamp(1.6rem, 4vw, 4rem); }
.auth-intro h1.auth-typed-heading::after { content: none; animation: none; }
.auth-typed-line { display: block; position: relative; width: max-content; white-space: nowrap; }
.auth-typed-space { visibility: hidden; padding-right: .12em; }
.auth-typed-text { position: absolute; inset: 0 auto 0 0; width: 100%; overflow: hidden; white-space: nowrap; border-right: .05em solid transparent; }
.auth-typed-second { border-right-color: #a5343e; }
.auth-interacted .auth-typed-text { border-right-color: transparent !important; }
@media (prefers-reduced-motion: no-preference) {
  .auth-typed-first { animation: auth-type-first 1.15s steps(15, end) both; }
  .auth-typed-second { width: 0; border-right-color: transparent; animation: auth-type-second 1.15s steps(15, end) 1.15s forwards, auth-type-blink 1.35s steps(1, end) 2.3s infinite; }
  @keyframes auth-type-first { 0% { width: 0; border-right-color: #a5343e; } 99% { border-right-color: #a5343e; } 100% { width: 100%; border-right-color: transparent; } }
  @keyframes auth-type-second { from { width: 0; border-right-color: #a5343e; } to { width: 100%; border-right-color: #a5343e; } }
  @keyframes auth-type-blink { 0%, 54% { border-right-color: #a5343e; } 55%, 100% { border-right-color: transparent; } }
}
@media (max-width: 760px) { .auth-intro .auth-typed-heading { font-size: clamp(1.4rem, 8vw, 2.7rem); } }
/* Authenticated account administration keeps a still headline. */
.auth-intro h1:not(.auth-typed-heading)::after { animation: none; }
