/* Hallmark: photographic store counter, original StockLenz palette and handwritten identity. */
/* Critique: the registration form stays the clearest path through the composition. */
:root {
  --identity-floor: #111410;
  --identity-frame: #3b4534;
  --identity-paper: #f4f1e7;
  --identity-sage: #c9ec83;
  --identity-light: #e7f7c1;
  --identity-ink: #202915;
  --identity-field: #141812;
  --identity-muted: #b7bcae;
  --identity-tint: #232b1e;
  --identity-deep: #1b2018;
  --identity-line: #59664b;
  --identity-rail: rgb(235 248 208 / .52);
  --identity-hair: rgb(225 241 200 / .09);
  --identity-shadow: rgb(2 6 1 / .27);
  --identity-halo: rgb(178 218 110 / .13);
  --identity-glow: rgb(201 236 131 / .44);
  --identity-pane: linear-gradient(140deg, #232a1d 0%, #1b2118 42%, #181d15 100%);
  --identity-photo-shade: linear-gradient(180deg, rgb(12 20 10 / .07) 5%, transparent 40%, rgb(12 20 10 / .33) 65%, rgb(8 16 8 / .92) 100%);
  --identity-corner: linear-gradient(var(--identity-rail),var(--identity-rail));
}
body:has(.auth-page) {
  background: radial-gradient(ellipse at 5% 0%, var(--identity-halo), transparent 49rem),var(--identity-floor);
}
.auth-page {
  max-width: 1300px;
  padding-inline: clamp(1.1rem, 5vw, 5rem);
  padding-bottom: 2.5rem;
}
.auth-top { height: clamp(5.1rem, 10vh, 7rem); }
.auth-wordmark {
  inline-size: clamp(10.4rem, 17vw, 13.2rem);
  block-size: auto;
  filter: drop-shadow(0 0 2px var(--identity-glow)) drop-shadow(0 0 11px var(--identity-glow)) drop-shadow(0 0 24px var(--identity-halo));
}
.auth-top .language {
  background: var(--identity-deep);
  border-color: var(--identity-frame);
  color: var(--identity-paper);
}
.auth-top .language select { min-height: 44px; color: var(--identity-paper); }
.auth-grid {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  gap: 0;
  min-height: min(690px, calc(100dvh - 140px));
  padding: .55rem;
  background: var(--identity-pane);
  border: 1px solid var(--identity-frame);
  border-radius: clamp(1.3rem, 2.6vw, 2.2rem);
  box-shadow: inset 0 1px var(--identity-hair), 0 22px 80px var(--identity-shadow);
}
.auth-visual {
  isolation: isolate;
  min-height: 35rem;
  border-radius: clamp(.9rem, 2.1vw, 1.7rem);
  background: var(--identity-deep);
  box-shadow: 0 0 0 1px var(--identity-frame);
}
.auth-visual::after { background: var(--identity-photo-shade); z-index: 0; }
.auth-visual::before {
  content: "";
  position: absolute;
  inset: clamp(.95rem, 2vw, 1.8rem);
  z-index: 1;
  pointer-events: none;
  background: var(--identity-corner) left top / 1.8rem 1px no-repeat,
    var(--identity-corner) left top / 1px 1.8rem no-repeat,
    var(--identity-corner) right bottom / 1.8rem 1px no-repeat,
    var(--identity-corner) right bottom / 1px 1.8rem no-repeat;
}
.auth-caption {
  color: var(--identity-paper);
  left: clamp(1.6rem, 3.2vw, 3.2rem);
  bottom: clamp(2rem, 3.6vw, 3.8rem);
  max-width: min(83%, 11ch);
  text-shadow: 0 2px 12px var(--identity-shadow);
}
.auth-side {
  position: relative;
  isolation: isolate;
  max-width: 33.7rem;
  margin-inline: auto;
  align-self: center;
  padding: clamp(1.75rem, 4vw, 3.1rem);
  color: var(--identity-paper);
}
.auth-side::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inline-size: clamp(4.8rem, 8vw, 7.5rem);
  aspect-ratio: 1;
  inset-block-start: -.15rem;
  inset-inline-end: .6rem;
  border-radius: 50%;
  opacity: .63;
  background: repeating-radial-gradient(ellipse at 100% 0%, transparent 0 6px, var(--identity-hair) 6.5px 7.2px, transparent 7.5px 11px);
  mask-image: linear-gradient(215deg, black, transparent 83%);
}
.auth-heading h1 { color: var(--identity-paper); font-weight: 650; }
.auth-heading p { color: var(--identity-muted); }
.auth-side .mode-switch {
  background: var(--identity-field); border: 1px solid var(--identity-frame);
  padding: 4px;
}
.auth-side .mode-switch button { min-height: 44px; color: var(--identity-muted); }
.auth-side .mode-switch button[aria-pressed="true"] {
  color: var(--identity-light); background: var(--identity-tint);
  box-shadow: inset 0 0 0 1px var(--identity-line);
}
.auth-side .field { color: var(--identity-paper); }
.auth-side input {
  color: var(--identity-paper); background: var(--identity-field);
  border-color: var(--identity-frame); min-height: 49px;
}
.auth-side input:focus-visible { outline: 2px solid var(--identity-sage); outline-offset: 2px; }
.auth-side .field:focus-within { color: var(--identity-light); }
.auth-side .btn.primary {
  background: var(--identity-sage); color: var(--identity-ink); border-color: var(--identity-sage);
  min-height: 49px; box-shadow: inset 0 1px var(--identity-hair);
}
.auth-side .btn.primary:hover { background: var(--identity-light); }
@media(max-width: 48rem) and (min-width: 38.751rem) {
  .auth-side { padding: 1.4rem; }
  .auth-visual { min-height: 31rem; }
}
@media(max-width: 38.75rem) {
  .auth-page { padding-inline: max(1rem, env(safe-area-inset-left)); max-width: 34rem; }
  .auth-top { height: 4.75rem; }
  .auth-wordmark { inline-size: clamp(9.5rem, 42vw, 11rem); }
  .auth-grid { display: flex; gap: 0; padding: .35rem; border-radius: 1.3rem; min-height: 0; }
  .auth-visual { min-height: 0; height: clamp(7.7rem, 20vh, 11rem); border-radius: 1rem; }
  .auth-visual img { object-position: 50% 39%; }
  .auth-visual::before { inset: .65rem; }
  .auth-caption { left: 1.05rem; bottom: .9rem; max-width: 13ch; font-size: clamp(1.4rem, 6vw, 1.9rem); line-height: 1.04; }
  .auth-side { width: 100%; max-width: none; padding: 1.55rem clamp(.65rem, 3.15vw, 1.2rem) 1.1rem; }
  .auth-side::before { inset-block-start: .2rem; inset-inline-end: .55rem; }
  .auth-heading h1 { font-size: clamp(2rem, 8.4vw, 2.65rem); }
}
@media (prefers-reduced-motion: reduce) { .auth-wordmark { animation: none; } }
