.auth-page {
  min-height: min(680px, calc(100vh - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 24px;
  background: var(--belora-theme-shell-gradient);
  border: 1px solid var(--belora-theme-border);
  box-shadow: var(--belora-theme-shadow);
}

.auth-aside,
.auth-form-panel {
  border-radius: 22px;
  padding: 20px;
  border: 1px solid var(--belora-theme-border);
}

.auth-aside {
  display: grid;
  align-content: start;
  gap: 14px;
  background: var(--belora-theme-hero-gradient);
}

.auth-form-panel {
  display: grid;
  align-content: start;
  gap: 14px;
  background: var(--belora-theme-shell-gradient);
}

.auth-aside-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.auth-badge {
  margin: 0;
  border-color: rgba(230, 200, 116, 0.52);
  background: rgba(101, 82, 39, 0.26);
  color: #ffefc6;
}

.auth-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--app-muted-button-border);
  background: var(--app-muted-button-bg);
  color: var(--belora-theme-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-home-button:hover {
  background: var(--app-chip-hover-bg);
  border-color: rgba(227, 198, 115, 0.52);
  color: var(--app-chip-hover-text);
}

.auth-brand-overline {
  margin: 0;
  color: var(--belora-theme-text-soft);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.auth-aside h1 {
  margin: 0;
  font-family: "Fraunces", "Palatino Linotype", serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 0.96;
  letter-spacing: 0.01em;
}

.auth-lead {
  margin: 0;
  max-width: 32ch;
  color: var(--belora-theme-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-quiet-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.auth-quiet-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--app-muted-button-border);
  background: var(--app-chip-solid-bg);
  color: var(--belora-theme-text);
  font-size: 13px;
  font-weight: 600;
}

.auth-switch-text,
.auth-mobile-switch {
  margin: 0;
  color: var(--belora-theme-text-soft);
}

.auth-switch-text a,
.auth-mobile-switch a {
  color: var(--belora-theme-gold);
}

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

.auth-form-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.auth-home-button-inline {
  min-height: 34px;
  padding: 0 14px;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.auth-home-button svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.auth-form-kicker {
  margin: 0;
  color: var(--belora-theme-text-soft);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.auth-form-head h2 {
  margin: 0;
  font-family: "Fraunces", "Palatino Linotype", serif;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 0.98;
}

.auth-form-subtitle {
  margin: 0;
  color: var(--belora-theme-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-form {
  gap: 12px;
}

.auth-field {
  gap: 6px;
}

.auth-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}


.auth-field-head label {
  color: var(--belora-theme-text);
  font-weight: 700;
}

.auth-field-head span {
  color: var(--belora-theme-text-soft);
  font-size: 12px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  min-height: 48px;
  border-radius: 16px;
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid var(--belora-theme-border);
  background: var(--belora-theme-input-bg);
  color: var(--belora-theme-text);
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: var(--belora-theme-text-soft);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  border-color: rgba(255, 214, 107, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 214, 107, 0.12);
}

.auth-password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.auth-password-field .auth-input {
  min-width: 0;
}

.auth-password-field-inline {
  position: relative;
}

.auth-password-field-inline .auth-input {
  padding-right: 56px;
}

.auth-password-toggle {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--app-muted-button-border);
  background: var(--app-chip-solid-bg);
  color: var(--belora-theme-text);
  padding: 0 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-password-toggle:hover {
  border-color: var(--belora-theme-border-strong);
  background: var(--app-chip-hover-bg);
  color: var(--app-chip-hover-text);
}

.auth-password-toggle-inline {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: var(--belora-theme-text-muted);
}

.auth-password-toggle-inline:hover {
  color: var(--app-chip-hover-text);
}

.auth-password-toggle-inline:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(230, 200, 116, 0.28);
}

.auth-password-toggle-inline svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-submit-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  border-radius: 18px;
  border: 1px solid var(--app-primary-button-border);
  background: var(--app-accent-gradient);
  color: var(--app-accent-contrast);
  font-size: 16px;
  font-weight: 800;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(206, 255, 248, 0.12),
    0 0 28px rgba(255, 214, 107, 0.1);
}

.auth-submit-btn:disabled {
  opacity: 1;
  cursor: progress;
  border-color: var(--app-primary-button-disabled-border);
  background: var(--app-primary-button-disabled-bg);
  color: var(--app-primary-button-disabled-text);
}

.auth-mobile-switch {
  display: none;
}

.auth-form .grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}


@media (min-width: 980px) {
  .auth-page {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
  }
}

@media (max-width: 979px) {

  .auth-page {
    min-height: auto;
  }

  .auth-form-panel {
    order: 1;
  }

  .auth-aside {
    order: 2;
  }
}

@media (max-width: 780px) {
  .auth-page {
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
  }

  .auth-aside,
  .auth-form-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .auth-aside h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .auth-lead {
    font-size: 15px;
  }

  .auth-form-head h2 {
    font-size: clamp(30px, 8.5vw, 40px);
  }

  .auth-form .grid.two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .auth-mobile-switch {
    display: block;
  }
}

@media (max-width: 540px) {
  .auth-aside-toolbar {
    flex-wrap: wrap;
  }

  .auth-home-button {
    margin-left: auto;
  }

  .auth-field-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 420px) {

  .auth-page {
    padding: 10px;
    border-radius: 20px;
  }

  .auth-aside,
  .auth-form-panel {
    padding: 16px;
  }

  .auth-submit-btn {
    min-height: 52px;
    font-size: 16px;
  }
}


