/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(1rem, 4vw, 4rem);
  background: #fbf6ec;
  color: #2a2622;
  font-family: Inter, "Open Sans", system-ui, sans-serif;
}

.auth-card {
  width: 100%;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid #e5d9be;
  border-radius: 28px;
  background: #fff;
}

.auth-card.narrow {
  max-width: 520px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.auth-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #f4c430;
  color: #2a2622;
}

.auth-brand strong,
.auth-brand small {
  display: block;
  line-height: 1.12;
}

.auth-brand strong {
  font-size: 1rem;
  font-weight: 800;
}

.auth-brand small {
  margin-top: 0.2rem;
  color: #6b6259;
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-kicker {
  width: fit-content;
  margin: 0 0 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #dcebea;
  color: #2f7a78;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.auth-card h1 {
  margin: 0;
  color: #2a2622;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.auth-lede {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: #4a433d;
  font-size: 1.05rem;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.auth-field {
  display: grid;
  gap: 0.4rem;
}

.auth-field label,
.auth-check {
  color: #4a433d;
  font-size: 0.88rem;
  font-weight: 800;
}

.auth-field small {
  color: #8a8178;
  font-size: 0.78rem;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  border: 1px solid #e5d9be;
  border-radius: 16px;
  background: #fbf6ec;
  color: #2a2622;
  font: inherit;
}

.auth-field input:focus {
  outline: 3px solid rgba(47, 122, 120, 0.18);
  border-color: #2f7a78;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-submit {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: #f4c430;
  color: #2a2622;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-submit:hover {
  background: #e6a900;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.auth-links a {
  color: #2f7a78;
  font-weight: 800;
  text-decoration: none;
}

.auth-errors {
  padding: 1rem;
  border: 1px solid #c97b5c;
  border-radius: 18px;
  background: #f2ddd2;
  color: #7b3f2a;
}

.auth-errors ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.auth-side {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 18%, rgba(244, 196, 48, 0.72) 0 5rem, transparent 5.2rem),
    linear-gradient(135deg, rgba(47, 122, 120, 0.96), rgba(42, 38, 34, 0.96));
  color: #fff;
}

.auth-side p {
  margin: 0 0 1rem;
  color: #f4c430;
  font-weight: 900;
}

.auth-side h2 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

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

  .auth-side {
    min-height: 22rem;
  }
}
