:root {
  --auth-ink: #102033;
  --auth-muted: rgba(16, 32, 51, 0.7);
  --auth-border: rgba(148, 163, 184, 0.3);
  --auth-panel: rgba(255, 255, 255, 0.94);
  --auth-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
  --auth-accent: #d32f2f;
  --auth-accent-alt: #1565c0;
  --auth-facebook: #1877f2;
  --auth-success: #1b5e20;
}

body.auth-page {
  background:
    radial-gradient(circle at top left, rgba(211, 47, 47, 0.14), transparent 34%),
    radial-gradient(circle at right center, rgba(21, 101, 192, 0.14), transparent 30%),
    #edf2f7;
  color: var(--auth-ink);
}

.auth-shell {
  min-height: 100vh;
  padding: 24px;
}

.auth-grid {
  min-height: calc(100vh - 48px);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(18px);
}

.auth-hero,
.auth-panel-wrapper {
  min-height: calc(100vh - 48px);
}

.auth-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 56px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(7, 17, 34, 0.2), rgba(7, 17, 34, 0.84)),
    radial-gradient(circle at 22% 22%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #09121f 0%, #102033 45%, #1d3557 100%);
}

.auth-hero::before,
.auth-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}

.auth-hero::before {
  top: 36px;
  right: 56px;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 0;
}

.auth-hero::after {
  inset: auto 24px 16px 24px;
  width: auto;
  height: auto;
  border-radius: 0;
  filter: none;
  background:
    url("./car-hero.svg") right bottom / min(92%, 720px) auto no-repeat;
  z-index: 0;
}

.auth-hero__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
}

.auth-wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.auth-hero h1 {
  margin-bottom: 18px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: clamp(2.1rem, 2vw + 1.5rem, 3.4rem);
  line-height: 1.08;
  color: #fff;
}

.auth-hero__body {
  margin-bottom: 28px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.auth-feature-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-feature-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.92);
}

.auth-feature-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a65, #ffd54f);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.auth-panel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.auth-panel {
  width: min(100%, 520px);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  background: var(--auth-panel);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.auth-brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.auth-brand-row h2 {
  margin-bottom: 6px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: clamp(1.8rem, 1vw + 1.35rem, 2.3rem);
  line-height: 1.12;
}

.auth-brand-row__eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--auth-accent);
}

.auth-brand-row__chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(211, 47, 47, 0.08);
  color: var(--auth-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.auth-panel__intro,
.auth-helper-text {
  color: var(--auth-muted);
}

.auth-panel__intro {
  margin-bottom: 28px;
  font-size: 0.98rem;
}

.auth-label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--auth-ink);
}

.auth-page .uk-input {
  height: 52px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 1px rgba(15, 23, 42, 0.02);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.auth-page .uk-input:focus {
  border-color: rgba(21, 101, 192, 0.55);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.12);
  transform: translateY(-1px);
}

.auth-page .sc-button {
  border-radius: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-recaptcha {
  display: inline-flex;
  padding: 12px;
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.auth-field-errors {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(211, 47, 47, 0.08);
  color: #9a1f1f;
  font-size: 0.88rem;
}

.auth-field-errors p:last-child {
  margin-bottom: 0;
}

.auth-field-errors--global {
  margin-bottom: 18px;
}

.auth-separator {
  position: relative;
  margin: 28px 0 20px;
  text-align: center;
}

.auth-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--auth-border);
}

.auth-separator span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: var(--auth-panel);
  color: var(--auth-muted);
  font-size: 0.88rem;
}

.auth-social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-color: var(--auth-border);
  color: var(--auth-ink);
  text-decoration: none;
}

.auth-social-button:hover,
.auth-social-button:focus {
  border-color: transparent;
}

.auth-social-button__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.auth-social-button__icon svg {
  width: 100%;
  height: 100%;
}

.auth-social-button--google:hover,
.auth-social-button--google:focus {
  background: rgba(66, 133, 244, 0.08);
  color: #1f4db8;
}

.auth-social-button--facebook {
  color: var(--auth-facebook);
}

.auth-social-button--facebook:hover,
.auth-social-button--facebook:focus {
  background: rgba(24, 119, 242, 0.08);
  color: var(--auth-facebook);
}

.auth-social-button[aria-disabled="true"],
.auth-social-button:disabled {
  opacity: 0.58;
  pointer-events: none;
}

.auth-helper-text {
  margin-top: 10px;
  font-size: 0.88rem;
}

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

.auth-helper-text--switch {
  margin-top: 24px;
}

.auth-helper-text--switch a {
  font-weight: 700;
}

.auth-messages {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.auth-message {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.auth-message--success {
  background: rgba(27, 94, 32, 0.1);
  color: var(--auth-success);
}

.auth-message--error {
  background: rgba(211, 47, 47, 0.08);
  color: #9a1f1f;
}

.auth-message--info {
  background: rgba(21, 101, 192, 0.1);
  color: var(--auth-accent-alt);
}

.auth-summary-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.auth-summary-item {
  padding: 18px 20px;
  border: 1px solid var(--auth-border);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
}

.auth-summary-item__label {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(21, 101, 192, 0.18);
  border-radius: 18px;
  background: rgba(21, 101, 192, 0.08);
}

.auth-inline-form {
  flex-shrink: 0;
}

.auth-inline-button {
  white-space: nowrap;
}

.auth-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--auth-border);
}

.auth-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.auth-section__header h3,
.auth-admin-editor__header h4 {
  margin-bottom: 6px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.auth-section__header p,
.auth-admin-editor__header p {
  margin: 0;
  color: var(--auth-muted);
}

.auth-section__eyebrow {
  margin: 0 0 8px;
  color: var(--auth-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.auth-admin-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
}

.auth-user-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.auth-user-list__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.82);
  color: inherit;
  text-decoration: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.auth-user-list__item:hover,
.auth-user-list__item:focus {
  border-color: rgba(21, 101, 192, 0.3);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.auth-user-list__item.is-active {
  border-color: rgba(21, 101, 192, 0.5);
  background: rgba(21, 101, 192, 0.08);
}

.auth-user-list__main {
  display: grid;
  gap: 4px;
}

.auth-user-list__main span,
.auth-user-list__meta {
  color: var(--auth-muted);
  font-size: 0.88rem;
}

.auth-user-list__meta {
  font-weight: 700;
}

.auth-admin-editor {
  padding: 22px;
  border: 1px solid var(--auth-border);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.82);
}

.auth-admin-editor__header {
  margin-bottom: 16px;
}

.auth-checkbox-grid {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.auth-checkbox span {
  color: var(--auth-ink);
  font-weight: 500;
}

.auth-action-row {
  margin-top: 20px;
}

@media (max-width: 1199px) {
  .auth-hero,
  .auth-panel-wrapper {
    min-height: auto;
  }

  .auth-hero {
    padding: 40px 32px;
  }

  .auth-panel-wrapper {
    padding-top: 0;
  }

  .auth-admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .auth-shell {
    padding: 12px;
  }

  .auth-grid {
    min-height: calc(100vh - 24px);
    border-radius: 22px;
  }

  .auth-hero {
    padding: 32px 24px 28px;
  }

  .auth-panel-wrapper {
    padding: 24px 16px 28px;
  }

  .auth-panel {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .auth-section__header,
  .auth-impersonation-banner {
    flex-direction: column;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 479px) {
  .auth-brand-row {
    flex-direction: column;
  }

  .auth-recaptcha {
    max-width: 100%;
    min-height: 86px;
    overflow: hidden;
  }

  .auth-recaptcha .g-recaptcha {
    transform: scale(0.87);
    transform-origin: left top;
  }
}
