
.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 12%, rgba(124,58,237,.10), transparent 28%),
    radial-gradient(circle at 10% 88%, rgba(91,45,150,.08), transparent 25%),
    linear-gradient(135deg, #ffffff, #faf8ff);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}

.auth-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 55px 7vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #29104f, #4e2194 62%, #7342bd);
  color: white;
}

.auth-brand-panel::before,
.auth-brand-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
}

.auth-brand-panel::before {
  width: 520px;
  height: 520px;
  right: -250px;
  top: -180px;
}

.auth-brand-panel::after {
  width: 380px;
  height: 380px;
  left: -220px;
  bottom: -170px;
}

.auth-brand-panel .brand {
  position: relative;
  z-index: 2;
  color: white;
}

.auth-brand-panel .brand-mark {
  color: #d9c7ff;
}

.auth-brand-panel .brand-text span {
  color: #cdb5ff;
}

.auth-brand-content {
  position: relative;
  z-index: 2;
  max-width: 570px;
  padding: 50px 0;
}

.auth-brand-content .eyebrow {
  color: #d7c4ff;
}

.auth-brand-content h1 {
  font-family: var(--serif);
  font-size: clamp(45px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -2.5px;
}

.auth-brand-content h1 span {
  color: #d4bfff;
}

.auth-brand-content p:not(.eyebrow) {
  color: #d8cce9;
  font-size: 15px;
  max-width: 490px;
  line-height: 1.8;
  margin-top: 22px;
}

.auth-quote {
  position: relative;
  z-index: 2;
  border-left: 2px solid rgba(255,255,255,.35);
  padding-left: 16px;
  color: #d5c9e7;
  font-family: var(--serif);
  font-size: 14px;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}

.auth-card {
  width: min(450px, 100%);
}

.auth-card-header {
  margin-bottom: 30px;
}

.auth-card-header h2 {
  font-family: var(--serif);
  font-size: 38px;
  letter-spacing: -1.2px;
  line-height: 1.1;
}

.auth-card-header p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 9px;
}

.auth-form {
  display: grid;
  gap: 17px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: #373444;
  font-size: 12px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 48px;
  border: 1px solid #ded9e8;
  border-radius: 11px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus {
  border-color: var(--violet-600);
  box-shadow: 0 0 0 4px rgba(107,50,201,.09);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 74px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--violet-700);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
  margin-top: 5px;
}

.auth-message {
  display: none;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
}

.auth-message.show {
  display: block;
}

.auth-message.error {
  background: #fff1f2;
  color: #a61b32;
  border: 1px solid #ffd5db;
}

.auth-message.success {
  background: #f2fbf6;
  color: #216b43;
  border: 1px solid #cfeede;
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 24px;
}

.auth-switch a {
  color: var(--violet-700);
  font-weight: 700;
}

.auth-legal {
  color: #94909c;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 22px;
  text-align: center;
}

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

  .auth-brand-panel {
    min-height: 390px;
    padding: 32px 28px;
  }

  .auth-brand-content {
    padding: 30px 0 15px;
  }

  .auth-brand-content h1 {
    font-size: 45px;
  }

  .auth-quote {
    display: none;
  }

  .auth-form-panel {
    padding: 55px 22px;
  }
}
