/* Login and register (DESIGN_SYSTEM.md sections 6 and 8).
   Desktop: the branding panel on the left, a white panel with the form on the right.
   Mobile: one column, a short logo band on top and the form beneath, full width. */

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-8);
  text-align: center;
  background: var(--accent-soft);
}

.auth-logo {
  width: 160px;
  height: auto;
}

.auth-business-name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--accent);
}

.auth-tagline {
  max-width: 320px;
  color: var(--text-secondary);
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: var(--bg-surface);
}

/* The form is never wider than 400px */
.auth-form-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
  max-width: 400px;
}

.auth-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

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

.auth-switch a {
  font-weight: 600;
}

@media (max-width: 767px) {
  .auth-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  /* a short band: the logo and the name, side by side */
  .auth-brand {
    flex-direction: row;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .auth-logo {
    width: 48px;
  }

  .auth-tagline {
    display: none;
  }

  .auth-panel {
    align-items: flex-start;
    padding: var(--space-6) var(--space-4);
  }
}
