/* ==============================
   Brand tokens (aligned to dashboard)
   ============================== */
:root {
  --purple-900: #2b0b3f; /* deep brand */
  --purple-700: #4b1d7a; /* primary */
  --purple-500: #7a52c7; /* accent */
  --ink-900: #0f1020;
  --ink-700: #2f2f46;
  --ink-500: #5a4a73;
  --border: #e7e3f5;
  --bg: #f7f6fc;
  --white: #fff;
  --radius-xl: 18px;
  --radius-lg: 12px;
  --shadow-1: 0 8px 24px rgba(43, 11, 63, 0.12);
}

/* ==============================
   Base
   ============================== */
* {
  box-sizing: border-box;
}

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

body.ts {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  background: var(--bg);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==============================
   Shell + panel
   ============================== */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100svh;
  display: grid;
  place-items: center;
}

/* Use this when header is removed to give breathing room */
.shell--spaced {
  margin-top: 48px; /* adjust 32–64px to taste */
}

.panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  min-height: 520px;
}

.panel__left {
  padding: 40px 36px 34px 36px;
}

.panel__right {
  background: radial-gradient(
      1200px 520px at 60% 0%,
      rgba(122, 82, 199, 0.18),
      transparent 50%
    ),
    linear-gradient(#fbfbff, #f3f1ff);
  display: grid;
  place-items: center;
  padding: 24px;
}

/* ==============================
   Headline + badge
   ============================== */
.panel__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.panel__title {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.2px;
}

.panel__badge {
  background: #efe9ff;
  color: var(--purple-700);
  border: 1px solid #e3d7ff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ==============================
   Django messages
   ============================== */
.messages {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
}

.messages__item {
  font-size: 14px;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: #fff8f8;
  color: #7a2332;
}

.messages__item.success {
  background: #f2fff7;
  color: #1d6b40;
  border-color: #d6f0e1;
}

.messages__item.error {
  background: #fff6f6;
  color: #7a2332;
  border-color: #f2dade;
}

/* ==============================
   Form
   ============================== */
.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
}

.field__input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  background: #fff;
  width: 100%;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.field__input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(122, 82, 199, 0.15);
}

/* Optional error state hook if you set a class on invalid fields */
.field--error .field__input {
  border-color: #f19999;
  box-shadow: 0 0 0 4px rgba(241, 153, 153, 0.15);
}

.form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-700);
}

.link {
  font-size: 14px;
  color: var(--purple-700);
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ==============================
   Actions / buttons
   ============================== */
.actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.12s ease, transform 0.02s ease-in-out;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(1.03);
}

.btn--ghost {
  background: #f4efff;
  color: var(--purple-700);
  border: 1px solid #e3d7ff;
}

.btn--ghost:hover {
  background: #efe9ff;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==============================
   Illustration
   ============================== */
.art {
  max-width: 92%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ==============================
   Responsive
   ============================== */
@media (max-width: 960px) {
  .panel {
    grid-template-columns: 1fr;
  }
  .panel__right {
    order: -1; /* bring the illustration above on mobile */
  }
  .panel__left {
    padding: 28px 20px;
  }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .field__input {
    transition: none;
  }
}

/* (Optional) If you still have topbar styles in your bundle,
   they won't affect this page because the header was removed. */
