/* DANZFLO — Auth Login */

:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #f7f5f1;
  --white: #ffffff;
  --accent: #e85d04;
  --accent-ink: #c2410c;
  --focus: #1d4ed8;
  --danger: #dc2626;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

.auth-body {
  font-family: 'Instrument Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.auth-layout {
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  text-align: left;
}

/* ===== Left visual ===== */
.auth-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}

.auth-visual__media {
  position: absolute;
  inset: 0;
}

.auth-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: auth-kenburns 18s ease-in-out infinite alternate;
}

.auth-visual__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.25) 0%, rgba(17, 24, 39, 0.55) 45%, rgba(17, 24, 39, 0.82) 100%),
    linear-gradient(90deg, rgba(232, 93, 4, 0.18), transparent 55%);
}

.auth-visual__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3.5rem;
  max-width: 34rem;
}

.auth-visual__logo {
  width: auto;
  height: 3.25rem;
  object-fit: contain;
  margin-bottom: 1.75rem;
  opacity: 0.98;
}

.auth-visual__headline {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.auth-visual__note {
  margin: 1.1rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 22rem;
}

@keyframes auth-kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

/* ===== Right form ===== */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(232, 93, 4, 0.06), transparent 50%),
    var(--paper);
}

.auth-panel__inner {
  width: 100%;
  max-width: 23.5rem;
  animation: auth-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes auth-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 2rem;
}

.auth-mobile-brand img {
  height: 2.75rem;
  width: auto;
}

.auth-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.auth-title {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.auth-subtitle {
  margin: 0.65rem 0 0;
  font-size: 0.975rem;
  line-height: 1.5;
  color: var(--muted);
}

.auth-header {
  margin-bottom: 2rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.auth-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.auth-inline-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.auth-inline-link:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  height: 3.25rem;
  padding: 0 1rem;
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #d6d3d1;
  border-radius: 0.65rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-input--pass {
  padding-right: 3rem;
}

.auth-input::placeholder {
  color: #a8a29e;
  font-weight: 400;
}

.auth-input:hover {
  border-color: #a8a29e;
}

.auth-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.auth-input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.auth-toggle-pass {
  position: absolute;
  top: 50%;
  right: 0.4rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  color: #78716c;
  background: transparent;
  border: none;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-toggle-pass:hover {
  color: var(--ink);
  background: #f5f5f4;
}

.auth-toggle-pass svg {
  width: 1.15rem;
  height: 1.15rem;
}

.auth-toggle-pass .auth-eye-closed { display: none; }
.auth-toggle-pass.is-showing .auth-eye-open { display: none; }
.auth-toggle-pass.is-showing .auth-eye-closed { display: block; }

.auth-error {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--danger);
}

.auth-alert {
  margin: 0;
  padding: 0.75rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 0.65rem;
}

.auth-alert.is-success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 3.25rem;
  margin-top: 0.35rem;
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border: none;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.auth-submit:hover {
  background: #000;
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: none;
}

.auth-submit.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.auth-submit-text[hidden],
.auth-submit-loading[hidden] {
  display: none !important;
}

.auth-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.auth-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.7s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-footnote {
  margin: 1.75rem 0 0;
  font-size: 0.75rem;
  color: #a8a29e;
}

/* ===== Responsive: hide banner below 960px ===== */
@media (max-width: 960px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .auth-panel {
    min-height: 100vh;
    padding: 2.5rem 1.5rem 3rem;
    align-items: center;
    background:
      radial-gradient(ellipse 90% 55% at 50% -10%, rgba(232, 93, 4, 0.1), transparent 55%),
      radial-gradient(ellipse 60% 40% at 100% 100%, rgba(17, 24, 39, 0.04), transparent 50%),
      var(--paper);
  }

  .auth-panel__inner {
    max-width: 24rem;
  }

  .auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    padding: 0.65rem 0.9rem;
    background: #0a0a0a;
    border-radius: 0.75rem;
  }

  .auth-mobile-brand img {
    height: 2.5rem;
    width: auto;
    display: block;
  }

  .auth-header {
    text-align: center;
  }

  .auth-footnote {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .auth-panel {
    padding: 2rem 1.15rem 2.5rem;
  }

  .auth-mobile-brand {
    margin-bottom: 1.5rem;
  }

  .auth-mobile-brand img {
    height: 2.15rem;
  }

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