:root {
  --auth-surface: rgba(255, 255, 255, 0.84);
  --auth-surface-strong: rgba(255, 255, 255, 0.94);
  --auth-border: rgba(193, 198, 215, 0.55);
  --auth-shadow: 0 34px 80px rgba(25, 28, 30, 0.14);
  --auth-text: #191c1e;
  --auth-muted: #414754;
  --auth-primary: #004be4;
  --auth-primary-soft: rgba(0, 75, 228, 0.12);
  --auth-secondary-soft: rgba(202, 230, 255, 0.5);
  --auth-danger: #ba1a1a;
  --auth-success: #137b47;
  --auth-chip: rgba(242, 244, 246, 0.72);
}

.auth-overlay[hidden] {
  display: none !important;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10010;
  padding: clamp(0.9rem, 2vw, 1.5rem);
  overflow: auto;
  background:
    radial-gradient(circle at 10% 12%, rgba(220, 225, 255, 0.9), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(202, 230, 255, 0.9), transparent 30%),
    linear-gradient(160deg, rgba(247, 249, 251, 0.96), rgba(236, 238, 240, 0.92));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.auth-overlay::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 82%, rgba(182, 196, 255, 0.46), transparent 26%),
    radial-gradient(circle at 84% 86%, rgba(144, 205, 253, 0.32), transparent 24%),
    url("https://www.transparenttextures.com/patterns/cubes.png");
  opacity: 0.34;
  pointer-events: none;
}

.auth-card.auth-shell {
  position: relative;
  width: min(1240px, 100%);
  max-height: calc(100dvh - 0.8rem);
  margin: 0 auto;
  overflow: auto;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.64)),
    linear-gradient(160deg, rgba(242, 244, 246, 0.68), rgba(255, 255, 255, 0.3));
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: clamp(1rem, 2vw, 1.5rem);
  font-family: "Manrope", sans-serif;
  color: var(--auth-text);
}

.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.auth-shell__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.auth-shell__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.auth-shell__brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3467ff, #004be4);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  box-shadow: 0 18px 32px rgba(0, 75, 228, 0.28);
  flex: 0 0 auto;
}

.auth-shell__brand-copy {
  min-width: 0;
}

.auth-shell__brand-label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--auth-primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.auth-shell__brand-copy strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(193, 198, 215, 0.42);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.auth-tab {
  border: 0;
  background: transparent;
  border-radius: 999px;
  color: var(--auth-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
}

.auth-tab:hover {
  color: var(--auth-primary);
}

.auth-tab.auth-tab--active {
  background: linear-gradient(135deg, #3467ff, #004be4);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 75, 228, 0.24);
}

.auth-scene {
  margin: 0;
}

.auth-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 1.25rem;
  align-items: stretch;
}

.auth-visual-panel,
.auth-login-card,
.auth-register-section,
.auth-register-summary,
.auth-register-help {
  border-radius: 1.75rem;
  border: 1px solid var(--auth-border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62));
  box-shadow: 0 24px 44px rgba(25, 28, 30, 0.08);
}

.auth-visual-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 4vw, 3rem);
  min-height: 34rem;
  background:
    linear-gradient(160deg, rgba(242, 244, 246, 0.82), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 80% 20%, rgba(202, 230, 255, 0.55), transparent 30%);
}

.auth-visual-panel::before {
  content: "";
  position: absolute;
  inset: auto auto 3.2rem -2rem;
  width: 13rem;
  height: 13rem;
  border-radius: 2.4rem;
  background: linear-gradient(135deg, rgba(220, 225, 255, 0.18), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(193, 198, 215, 0.28);
  transform: rotate(18deg);
}

.auth-panel-kicker,
.auth-register-kicker {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--auth-primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.auth-panel-title,
.auth-register-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.auth-panel-title-accent,
.auth-register-title-accent {
  color: var(--auth-primary);
}

.auth-panel-copy,
.auth-register-copy {
  max-width: 32rem;
  margin: 1.5rem 0 0;
  color: var(--auth-muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.auth-panel-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.2rem;
}

.auth-panel-footer-line {
  flex: 1;
  height: 1px;
  background: rgba(113, 119, 134, 0.24);
}

.auth-panel-footer-label {
  color: rgba(65, 71, 84, 0.82);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.auth-feature-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.4rem;
  max-width: 28rem;
}

.auth-feature-chip {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(193, 198, 215, 0.4);
  background: rgba(255, 255, 255, 0.62);
}

.auth-feature-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.95rem;
  flex: 0 0 auto;
  background: rgba(0, 75, 228, 0.12);
  color: var(--auth-primary);
  font-variation-settings: "FILL" 0, "wght" 450, "GRAD" 0, "opsz" 24;
}

.auth-feature-chip strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.auth-feature-chip span:last-child,
.auth-feature-chip p {
  color: var(--auth-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-floating-accent {
  position: absolute;
  right: 2rem;
  bottom: 1.8rem;
  width: 13rem;
  min-height: 13rem;
  padding: 1.4rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(193, 198, 215, 0.28);
  background: linear-gradient(135deg, rgba(220, 225, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 36px rgba(25, 28, 30, 0.1);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.auth-floating-accent .material-symbols-outlined {
  display: inline-flex;
  margin-bottom: 2rem;
  color: var(--auth-primary);
  font-size: 2rem;
  font-variation-settings: "FILL" 0, "wght" 360, "GRAD" 0, "opsz" 24;
}

.auth-floating-accent span:last-child {
  display: block;
  color: var(--auth-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.auth-login-card {
  padding: clamp(1.6rem, 3vw, 2.8rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7)),
    linear-gradient(160deg, rgba(236, 238, 240, 0.34), rgba(255, 255, 255, 0.2));
}

.auth-mobile-brand {
  display: none;
  margin-bottom: 2rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.auth-card-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.auth-card-copy {
  margin: 0.45rem 0 0;
  color: var(--auth-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-card-body {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.auth-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.auth-field--full {
  grid-column: 1 / -1;
}

.auth-field__label {
  color: rgba(65, 71, 84, 0.88);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  width: 100%;
  min-height: 3.5rem;
  border: 1px solid rgba(193, 198, 215, 0.42);
  border-radius: 1.05rem;
  padding: 0.95rem 1rem;
  background: rgba(242, 244, 246, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--auth-text);
  font: inherit;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.auth-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(25, 28, 30, 0.55) 50%),
    linear-gradient(135deg, rgba(25, 28, 30, 0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) calc(50% - 0.16rem),
    calc(100% - 0.9rem) calc(50% - 0.16rem);
  background-size: 0.38rem 0.38rem, 0.38rem 0.38rem;
  background-repeat: no-repeat;
  padding-right: 2.7rem;
}

.auth-form input::placeholder,
.auth-form textarea::placeholder {
  color: rgba(113, 119, 134, 0.72);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
  outline: none;
  border-color: rgba(0, 75, 228, 0.45);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(0, 75, 228, 0.08);
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field input {
  padding-right: 5rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.7rem;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  background: rgba(0, 75, 228, 0.12);
  color: var(--auth-primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease;
}

.password-toggle:hover {
  background: rgba(0, 75, 228, 0.18);
}

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

.auth-field__helper {
  color: var(--auth-primary);
  font-size: 0.78rem;
  font-weight: 600;
}

.auth-primary-action {
  width: 100%;
  border: 0;
  border-radius: 1.1rem;
  padding: 1.05rem 1.2rem;
  background: linear-gradient(135deg, #3467ff, #004be4);
  color: #ffffff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0, 75, 228, 0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.auth-primary-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(0, 75, 228, 0.34);
}

.auth-primary-action:active {
  transform: translateY(0);
}

.auth-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.auth-secondary-card {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(193, 198, 215, 0.42);
  background: rgba(242, 244, 246, 0.68);
}

.auth-secondary-card strong {
  display: block;
  margin-bottom: 0.22rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
}

.auth-secondary-card span {
  color: var(--auth-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-card-footer {
  margin-top: 1.35rem;
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.8rem;
}

.auth-card-footer strong {
  color: var(--auth-primary);
  font-weight: 700;
}

.auth-register-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 1.25rem;
  align-items: start;
}

.auth-register-main {
  min-width: 0;
}

.auth-register-header {
  margin-bottom: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 1.75rem;
  border: 1px solid rgba(193, 198, 215, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.68)),
    radial-gradient(circle at 100% 0, rgba(220, 225, 255, 0.46), transparent 34%);
  box-shadow: 0 22px 38px rgba(25, 28, 30, 0.07);
}

.auth-register-header .auth-register-title {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.auth-register-stack {
  display: grid;
  gap: 1rem;
}

.auth-register-section {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.auth-register-section-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}

.auth-register-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(0, 75, 228, 0.12);
  color: var(--auth-primary);
  font-variation-settings: "FILL" 0, "wght" 360, "GRAD" 0, "opsz" 24;
}

.auth-register-section-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.auth-register-sidebar {
  position: sticky;
  top: 0;
  display: grid;
  gap: 1rem;
}

.auth-register-summary {
  overflow: hidden;
  background: linear-gradient(180deg, #3467ff, #004be4);
  color: #ffffff;
  border-color: rgba(13, 49, 145, 0.2);
  box-shadow: 0 28px 48px rgba(0, 75, 228, 0.28);
}

.auth-register-summary-visual {
  position: relative;
  min-height: 12rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 42, 132, 0.12)),
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.32), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.18));
}

.auth-register-summary-visual::after {
  content: "";
  position: absolute;
  inset: auto 1.5rem 1.35rem auto;
  width: 6rem;
  height: 6rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(18deg);
}

.auth-register-summary-body {
  padding: 1.7rem;
}

.auth-register-summary h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.auth-register-summary p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.7;
}

.auth-summary-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.auth-summary-list-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.96);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-summary-list-item .material-symbols-outlined {
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
  font-variation-settings: "FILL" 0, "wght" 420, "GRAD" 0, "opsz" 20;
}

.auth-register-summary .auth-primary-action {
  background: #ffffff;
  color: var(--auth-primary);
  box-shadow: 0 18px 34px rgba(1, 25, 92, 0.24);
}

.auth-summary-terms {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

.auth-register-help {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
}

.auth-register-help-avatar {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(52, 103, 255, 0.22), rgba(144, 205, 253, 0.48));
  border: 4px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 24px rgba(25, 28, 30, 0.08);
}

.auth-register-help strong {
  display: block;
  color: var(--auth-primary);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.auth-register-help p {
  margin: 0.2rem 0 0;
  color: var(--auth-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.password-criteria,
.programme-choice-block {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(193, 198, 215, 0.38);
  background: rgba(242, 244, 246, 0.76);
  margin: 0;
}

.password-criteria-title,
.programme-choice-title {
  color: var(--auth-text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.password-criteria-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
}

.password-criteria-item {
  color: var(--auth-muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.password-criteria-item--valid {
  color: var(--auth-success);
}

.password-criteria-item--invalid {
  color: var(--auth-danger);
}

.programme-choice-grid {
  display: grid;
  gap: 0.55rem;
}

.programme-choice-option {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--auth-text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.programme-choice-option input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0.22rem 0 0;
  accent-color: var(--auth-primary);
}

.field-hint {
  display: block;
  color: var(--auth-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.auth-status-bar {
  margin: 1rem 0 0;
  padding: 0.95rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(193, 198, 215, 0.36);
  background: rgba(255, 255, 255, 0.7);
  color: var(--auth-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.auth-status-bar.error,
.auth-status.error {
  color: var(--auth-danger);
  border-color: rgba(186, 26, 26, 0.24);
  background: rgba(255, 218, 214, 0.6);
}

.auth-shell button.auth-tab {
  border: 0;
  background: transparent;
  color: var(--auth-muted);
  box-shadow: none;
}

.auth-shell button.auth-tab:hover {
  background: transparent;
  color: var(--auth-primary);
}

.auth-shell button.auth-tab.auth-tab--active,
.auth-shell button.auth-tab.auth-tab--active:hover {
  background: linear-gradient(135deg, #3467ff, #004be4);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 75, 228, 0.24);
}

.auth-shell button.password-toggle {
  border: 0;
  background: rgba(0, 75, 228, 0.12);
  color: var(--auth-primary);
  box-shadow: none;
}

.auth-shell button.password-toggle:hover {
  background: rgba(0, 75, 228, 0.18);
  color: var(--auth-primary);
}

.auth-shell button.auth-primary-action,
.auth-shell button[type="submit"].auth-primary-action {
  border: 0;
  background: linear-gradient(135deg, #3467ff, #004be4);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(0, 75, 228, 0.28);
}

.auth-shell button.auth-primary-action:hover,
.auth-shell button[type="submit"].auth-primary-action:hover {
  background: linear-gradient(135deg, #3a6cff, #0b54ed);
  color: #ffffff;
  box-shadow: 0 22px 38px rgba(0, 75, 228, 0.34);
}

.auth-shell .auth-register-summary button.auth-primary-action,
.auth-shell .auth-register-summary button[type="submit"].auth-primary-action {
  background: #ffffff;
  color: var(--auth-primary);
  box-shadow: 0 18px 34px rgba(1, 25, 92, 0.24);
}

.auth-shell .auth-register-summary button.auth-primary-action:hover,
.auth-shell .auth-register-summary button[type="submit"].auth-primary-action:hover {
  background: #ffffff;
  color: var(--auth-primary);
  box-shadow: 0 22px 38px rgba(1, 25, 92, 0.3);
}

.auth-shell button.auth-tab:focus-visible,
.auth-shell button.password-toggle:focus-visible,
.auth-shell button.auth-primary-action:focus-visible {
  outline: 2px solid rgba(52, 103, 255, 0.38);
  outline-offset: 2px;
}

.auth-form [hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .auth-login-layout,
  .auth-register-layout {
    grid-template-columns: 1fr;
  }

  .auth-visual-panel {
    min-height: 0;
  }

  .auth-floating-accent {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 0;
    margin-top: 1.5rem;
  }

  .auth-register-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .auth-card.auth-shell {
    border-radius: 1.5rem;
    padding: 0.9rem;
  }

  .auth-shell__topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-shell__brand {
    align-items: flex-start;
  }

  .auth-tabs {
    width: 100%;
  }

  .auth-tab {
    flex: 1 1 0;
    text-align: center;
    padding-inline: 0.8rem;
  }

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

  .auth-panel-title,
  .auth-register-title {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

  .auth-field-grid,
  .auth-secondary-grid {
    grid-template-columns: 1fr;
  }

  .auth-register-section-head {
    align-items: flex-start;
  }
}
