/* Maria Frisch authentication — Rooted-inspired split experience */
.auth-body {
  --auth-accent: #b4575b;
  --auth-accent-dark: #934348;
  --auth-background: #fff;
  --auth-text: #2f251f;
  --auth-muted: #746a62;
  --auth-line: #e4dfda;
  --auth-danger: #9d3c40;
  --auth-success: #32704a;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--auth-background);
  color: var(--auth-text);
  font-family: 'Avenir', 'Avenir Next', 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.auth-body *, .auth-body *::before, .auth-body *::after { box-sizing: border-box; }
.auth-body button, .auth-body input { font: inherit; }
.auth-skip-link { position: fixed; top: .75rem; left: 50%; z-index: 20; padding: .55rem .8rem; border-radius: .35rem; background: var(--auth-text); color: #fff; text-decoration: none; transform: translate(-50%, -200%); }
.auth-skip-link:focus { transform: translate(-50%, 0); }
.auth-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.auth-experience { position: relative; display: grid; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--auth-background); }
.auth-experience__brand { position: absolute; top: 2.5rem; left: 4rem; z-index: 4; display: inline-flex; align-items: center; gap: .75rem; color: var(--auth-text); text-decoration: none; }
.auth-experience__brand img { display: block; width: 2rem; height: auto; filter: brightness(0) saturate(100%); }
.auth-experience__brand span { font-family: var(--font-heading, 'Bodoni 72', Didot, serif); font-size: 1.32rem; letter-spacing: -.025em; line-height: 1; }
.auth-experience__brand:focus-visible { border-radius: .25rem; outline: 2px solid var(--auth-accent); outline-offset: .4rem; }
.auth-experience__media { display: none; }
.auth-experience__surface { display: flex; width: min(100%, 40rem); min-height: 100svh; flex-direction: column; justify-self: center; padding: 7rem 0; }
.auth-experience__content { display: flex; width: 100%; flex: 1; flex-direction: column; justify-content: center; }
.auth-experience__footer { display: flex; gap: 1.75rem; margin-top: 2rem; color: var(--auth-muted); font-size: .75rem; }
.auth-experience__footer a { color: inherit; text-decoration: none; }
.auth-experience__footer a:hover, .auth-experience__footer a:focus-visible { color: var(--auth-text); text-decoration: underline; text-underline-offset: .2rem; }

.auth-heading { margin-bottom: 1.5rem; }
.auth-heading h1 { margin: 0; color: var(--auth-text); font-family: inherit; font-size: 2.625rem; font-weight: 400; letter-spacing: -.045em; line-height: 1.16; }
.auth-heading p { margin: .5rem 0 0; color: var(--auth-muted); font-size: 1rem; line-height: 1.5; }
.auth-form { --auth-field-height: 3.5rem; display: grid; gap: 1rem; }
.auth-field { display: grid; gap: .5rem; color: var(--auth-muted); font-size: .875rem; line-height: 1.5; }
.auth-field > label:not(.auth-visually-hidden) { color: var(--auth-text); font-size: .82rem; font-weight: 700; }
.auth-field > input, .auth-password-control { width: 100%; height: var(--auth-field-height); border: 1px solid var(--auth-line); border-radius: .75rem; background: transparent; box-shadow: 0 1px 2px rgba(47, 37, 31, .06); }
.auth-field input { width: 100%; height: 100%; padding: 1rem 1.5rem; border: 0; border-radius: inherit; background: transparent; color: var(--auth-text); font-size: 1rem; outline: none; }
.auth-field > input { height: var(--auth-field-height); border: 1px solid var(--auth-line); border-radius: .75rem; }
.auth-field > input:focus, .auth-password-control:focus-within { border-color: color-mix(in srgb, var(--auth-accent) 62%, var(--auth-line)); background: color-mix(in srgb, #fff 70%, #faf8f5); box-shadow: 0 0 0 2px color-mix(in srgb, var(--auth-accent) 18%, transparent); }
.auth-field input::placeholder { color: color-mix(in srgb, var(--auth-muted) 93%, transparent); }
.auth-password-control { position: relative; display: block; }
.auth-password-control input { padding-right: 3.5rem; }
.auth-password-control button { position: absolute; top: 50%; right: 1.25rem; display: grid; width: 1.5rem; height: 1.5rem; place-items: center; padding: 0; border: 0; background: transparent; color: color-mix(in srgb, var(--auth-muted) 72%, transparent); cursor: pointer; transform: translateY(-50%); }
.auth-password-control button:focus-visible { border-radius: .25rem; outline: 2px solid var(--auth-accent); outline-offset: 2px; }
.auth-password-control svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.auth-primary, .auth-secondary { display: inline-flex; width: 100%; min-height: 3.375rem; align-items: center; justify-content: center; padding: .75rem 1.25rem; border-radius: .75rem; font-weight: 600; cursor: pointer; transition: transform 160ms ease, background-color 160ms ease; }
.auth-primary { border: 1px solid var(--auth-text); background: var(--auth-text); color: #fff; box-shadow: 0 1px 2px rgba(47, 37, 31, .08); }
.auth-primary:hover { background: color-mix(in srgb, var(--auth-text) 90%, var(--auth-accent)); }
.auth-primary:active, .auth-secondary:active { transform: translateY(1px); }
.auth-secondary { border: 1px solid var(--auth-line); background: transparent; color: var(--auth-text); text-decoration: none; }
.auth-secondary:hover, .auth-secondary:focus-visible { background: #faf8f5; }
.auth-primary:focus-visible, .auth-secondary:focus-visible { outline: 3px solid color-mix(in srgb, var(--auth-accent) 42%, transparent); outline-offset: 3px; }
.auth-reset-form { --auth-field-height: 3.625rem; gap: .75rem; }
.auth-reset-form .auth-primary { margin-top: 1.25rem; }
.auth-alert { margin: 0 0 1rem; padding: 1rem; border: 1px solid color-mix(in srgb, var(--auth-danger) 42%, transparent); border-radius: .75rem; background: color-mix(in srgb, var(--auth-danger) 9%, #fff); color: var(--auth-text); font-size: .9rem; line-height: 1.5; }
.auth-alert--success { border-color: color-mix(in srgb, var(--auth-success) 42%, transparent); background: color-mix(in srgb, var(--auth-success) 12%, #fff); color: var(--auth-success); }

@media (min-width: 768px) {
  .auth-experience { grid-template-columns: 1fr 1fr; }
  .auth-experience__surface { grid-column: 1; grid-row: 1; width: 100%; min-height: 100svh; justify-content: center; padding: 2.5rem 4rem; }
  .auth-experience__content, .auth-experience__footer { width: min(100%, 28.125rem); margin-inline: auto; }
  .auth-experience__content { flex: 0 0 auto; }
  .auth-experience__footer { margin-top: 2rem; }
  .auth-experience__media { position: relative; display: block; grid-column: 2; grid-row: 1; height: calc(100svh - 2rem); min-height: 0; margin: 1rem; overflow: hidden; border-radius: .75rem; background: #d6b39b; }
  .auth-experience__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 25% center; scale: 1.04; }
  .auth-experience__media span { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(180, 87, 91, .06), rgba(47, 37, 31, .16)); mix-blend-mode: multiply; }
}

@media (min-width: 768px) and (max-width: 990px) {
  .auth-experience__surface { padding-inline: 3rem; }
  .auth-heading h1 { font-size: 2rem; }
}

@media (max-width: 767px) {
  .auth-experience { --auth-media-min-height: clamp(14rem, 33.5svh, 18rem); --auth-surface-overlap: 1.5rem; display: flex; flex-direction: column; overflow: auto; }
  .auth-experience__brand { top: 1rem; left: 1rem; color: #fff; }
  .auth-experience__brand img { filter: none; }
  .auth-experience__brand span { font-size: 1.16rem; text-shadow: 0 1px 12px rgba(47, 37, 31, .24); }
  .auth-experience__media { position: relative; display: block; min-height: var(--auth-media-min-height); flex: 1 1 var(--auth-media-min-height); margin: 0; overflow: hidden; background: #d6b39b; }
  .auth-experience__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 25% center; scale: 1.05; }
  .auth-experience__media span { position: absolute; inset: 0; background: rgba(180, 87, 91, .15); mix-blend-mode: multiply; }
  .auth-experience__surface { position: relative; z-index: 2; width: 100%; min-height: 0; flex: 0 0 auto; margin-top: calc(-1 * var(--auth-surface-overlap)); padding: 2.25rem 1.5rem 1.5rem; border-radius: 1.5rem 1.5rem 0 0; background: #fff; }
  .auth-experience__surface--sign-in { min-height: 29.125rem; }
  .auth-experience__surface--sign-in .auth-experience__footer { margin-top: auto; padding-top: 2rem; }
  .auth-experience__content, .auth-experience__footer { width: min(100%, 28.125rem); margin-inline: auto; }
  .auth-experience__content { flex: 0 0 auto; justify-content: flex-start; }
  .auth-experience__footer { margin-top: 2rem; }
  .auth-heading { margin-bottom: 1.5rem; }
  .auth-heading h1 { font-size: 2rem; line-height: 1.2; }
  .auth-form { gap: 1rem; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .auth-experience { --auth-transition-media-height: clamp(15rem, 36svh, 20rem); }
  .auth-experience__media { min-height: var(--auth-transition-media-height); flex: 0 0 var(--auth-transition-media-height); }
  .auth-experience__surface { flex: 1 0 auto; }
  .auth-experience__content { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-primary, .auth-secondary { transition: none; }
}
