/* ==========================================================================
   Suzys Chicken — Auth (Login) Page
   ========================================================================== */

:root {
  --brand-bg: #241511;
  --brand-bg-deep: #180D0A;
  --brand-gold: #E3A73A;
  --brand-chili: #D93A2F;
  --brand-chili-dark: #B22C22;

  --panel-bg: #FBF9F6;
  --ink: #231712;
  --ink-muted: #6B5D54;
  --border: #E4DED7;
  --border-focus: #8B3A2A;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--panel-bg);
}

.auth-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ---------------------------------------------------------------
   LEFT PANEL — 60%
   --------------------------------------------------------------- */
.auth-brand {
  position: relative;
  flex: 0 0 60%;
  max-width: 60%;
  background: radial-gradient(120% 140% at 20% 15%, var(--brand-bg) 0%, var(--brand-bg-deep) 70%);
  color: #F3E9DD;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4.5rem 5rem;
  overflow: hidden;
}

.auth-brand__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
}

.auth-brand__logo {
  position: relative;
  z-index: 1;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: invert(1) brightness(1.15);
  display: block;
}

.auth-brand__body {
  position: relative;
  z-index: 1;
  max-width: 30rem;
}

.auth-brand__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

.auth-brand__sub {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #E4D4C2;
  margin: 0;
}

.auth-brand__footer {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: #B79C82;
}

/* organic curve divider between the two panels */
.auth-divider {
  position: absolute;
  top: 0;
  right: -1px;
  height: 100%;
  width: 90px;
  z-index: 2;
}

/* ---------------------------------------------------------------
   RIGHT PANEL — 40%
   --------------------------------------------------------------- */
.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: var(--panel-bg);
}

.auth-form-card {
  width: 100%;
  max-width: 360px;
}

.auth-form-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.auth-form-card__hint {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0 0 2rem;
  line-height: 1.5;
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-family: var(--font-ui);
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.field input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.field input:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 1px;
}

.field-password {
  position: relative;
}

.field-password .toggle-visibility {
  position: absolute;
  right: 0.7rem;
  top: 2.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-family: var(--font-ui);
  padding: 0.2rem;
}

.field-password .toggle-visibility:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.2rem 0 1.6rem;
  font-size: 0.88rem;
}

.field-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
}

.field-remember input {
  width: 15px;
  height: 15px;
  accent-color: var(--brand-chili);
}

.link-muted {
  color: var(--brand-chili);
  text-decoration: none;
}

.link-muted:hover,
.link-muted:focus-visible {
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: var(--font-ui);
  color: #fff;
  background: var(--brand-chili);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-submit:hover {
  background: var(--brand-chili-dark);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--brand-chili-dark);
  outline-offset: 2px;
}

.auth-alert {
  background: #FBEAE5;
  border: 1px solid #E4B7A9;
  color: var(--brand-chili-dark);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  margin-bottom: 1.3rem;
  line-height: 1.5;
}

.auth-alert ul {
  margin: 0.3rem 0 0;
  padding-left: 1.1rem;
}

/* ---------------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------------- */
@media (max-width: 900px) {
  .auth-shell {
    flex-direction: column;
  }

  .auth-brand {
    flex: none;
    max-width: 100%;
    padding: 2.75rem 2rem 3.5rem;
  }

  .auth-brand__headline {
    font-size: 2rem;
  }

  .auth-divider {
    display: none;
  }

  .auth-form-side {
    padding: 2.5rem 1.5rem 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}