/* Auth — charte Atelier (papier, encre, terracotta) */
html, body { margin: 0; padding: 0; }
:root {
  --lp-primary: #c45c26;
  --lp-primary-dark: #a3491c;
  --lp-secondary: #c45c26;
  --aa-ink: #1c1914;
  --aa-cream: #fffaf3;
  --aa-paper: #f4efe6;
  --aa-line: #d4cbb8;
  --aa-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
}

.auth-split {
  min-height: 100vh;
  display: flex;
  font-family: 'Rubik', system-ui, sans-serif;
  color: var(--aa-ink);
}

.auth-aside {
  display: none;
  width: 48%;
  flex-shrink: 0;
  background:
    radial-gradient(ellipse 60% 80% at 90% 12%, rgba(196, 92, 38, 0.18), transparent 55%),
    var(--aa-ink);
  color: var(--aa-cream);
  padding: 2.5rem 3rem;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 960px) {
  .auth-aside { display: flex; }
}

.auth-aside-inner { position: relative; z-index: 1; max-width: 32rem; }

.auth-aside .aa-logo { margin-bottom: 2.25rem; }
.auth-form-brand .aa-logo { justify-content: center; }

.auth-aside h1 {
  font-family: var(--aa-serif);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 600;
  font-optical-sizing: auto;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  color: var(--aa-cream);
}

.auth-aside-lead {
  color: rgba(255, 250, 243, 0.68);
  line-height: 1.6;
  margin: 0 0 1.75rem;
  font-size: 1rem;
}

.auth-reasons { list-style: none; margin: 0 0 2rem; padding: 0; }
.auth-reasons li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  font-size: 0.9375rem;
  color: rgba(255, 250, 243, 0.9);
}
.auth-reasons li::before {
  content: '✓';
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.25rem;
  background: rgba(196, 92, 38, 0.28);
  color: #e8a06a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 0.05rem;
}

.auth-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.auth-mosaic img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 0.35rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  display: block;
  padding: 0;
  background: transparent;
}
.auth-mosaic figcaption {
  grid-column: 1 / -1;
  font-family: var(--aa-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: rgba(255, 250, 243, 0.5);
  margin-top: 0.35rem;
}

.auth-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: var(--aa-paper);
}
.auth-form-wrap--scroll {
  align-items: flex-start;
  overflow-y: auto;
}

.auth-form-card {
  width: 100%;
  max-width: 26rem;
  background: var(--aa-cream);
  border: 1px solid var(--aa-line);
  border-radius: 2px;
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(28, 25, 20, 0.08);
}
.auth-form-card--wide {
  max-width: 34rem;
  margin: 1.5rem 0;
}
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.75rem;
}
.auth-row[hidden] {
  display: none !important;
}
@media (max-width: 520px) {
  .auth-row { grid-template-columns: 1fr; }
}
.auth-optional {
  font-weight: 400;
  color: #8a8276;
  font-size: 0.75rem;
}

.auth-form-brand {
  display: none;
  text-align: center;
  margin-bottom: 1.25rem;
}
@media (max-width: 959px) {
  .auth-form-brand { display: block; }
}

.auth-form-card h2 {
  font-family: var(--aa-serif);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--aa-ink);
  letter-spacing: -0.02em;
}
.auth-form-card .auth-sub {
  font-size: 0.875rem;
  color: #6b6358;
  margin: 0 0 1.5rem;
}

.auth-flash {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}
.auth-flash--error { background: #fef2f2; color: #b91c1c; }
.auth-flash--ok { background: #f0fdf4; color: #15803d; }

.auth-field { margin-bottom: 1rem; }
.auth-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #4a453c;
  margin-bottom: 0.35rem;
}
.auth-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--aa-line);
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9375rem;
  font-family: inherit;
  background: #fff;
  color: var(--aa-ink);
}
.auth-field input:focus {
  outline: none;
  border-color: var(--lp-primary);
  box-shadow: 0 0 0 3px rgba(196, 92, 38, 0.14);
}

.auth-submit {
  width: 100%;
  margin-top: 0.5rem;
  border: 0;
  border-radius: 0.5rem;
  background: var(--lp-primary);
  color: var(--aa-cream);
  font-weight: 600;
  font-size: 0.975rem;
  font-family: inherit;
  padding: 0.85rem 1rem;
  cursor: pointer;
}
.auth-submit:hover { background: var(--lp-primary-dark); }

.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: #6b6358;
  margin: 1.35rem 0 0;
}
.auth-switch a {
  color: var(--lp-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.85rem 0 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6b6358;
  cursor: pointer;
}
.auth-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--lp-primary);
}
.auth-check a {
  color: var(--lp-primary);
  font-weight: 600;
  text-decoration: none;
}
.auth-check a:hover { text-decoration: underline; }

.auth-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.9rem;
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: #8a8276;
}
.auth-legal a {
  color: #8a8276;
  text-decoration: none;
}
.auth-legal a:hover { color: var(--lp-primary); }
