.app--login {
  background: radial-gradient(circle at 15% 15%, rgba(250, 214, 126, 0.08), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(255, 158, 66, 0.08), transparent 65%),
    var(--color-surface);
}

.client-login-layout {
  display: grid;
  gap: clamp(var(--space-4), 4vw, var(--space-7));
}

.client-login-header {
  padding: clamp(var(--space-3), 3vw, var(--space-5)) clamp(var(--space-5), 5vw, var(--space-7));
  position: relative;
  z-index: 2;
}

.client-login-header__inner {
  width: min(100% - clamp(var(--space-4), 4vw, var(--space-6)), 1280px);
  margin-inline: auto;
}

.client-login-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(var(--space-2), 2.5vw, var(--space-3));
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
}

.client-login-actions > * {
  flex: 0 0 auto;
}

.client-login-auth {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(var(--space-2), 2.5vw, var(--space-3));
  flex-wrap: nowrap;
}

.client-login-signin {
  min-block-size: clamp(2.25rem, 4vw, 2.75rem);
  padding-inline: clamp(var(--space-3), 3vw, var(--space-5));
}

.client-login-logout .icon {
  margin-inline-end: var(--space-2);
}

.client-login-language {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.client-login-language .menu-button__menu {
  z-index: 1400;
}

.client-login-language__trigger {
  inline-size: clamp(2.35rem, 3.4vw, 2.9rem);
  block-size: clamp(2.35rem, 3.4vw, 2.9rem);
}

.client-auth-shell {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  width: min(100% - var(--space-6), 1280px);
  margin: var(--space-8) auto var(--space-10);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(240, 200, 110, 0.2);
  box-shadow: 0 40px 120px rgba(9, 12, 24, 0.45);
  background: rgba(9, 12, 24, 0.9);
}

.client-auth-aside {
  position: relative;
  padding: var(--space-7) var(--space-6);
  background: linear-gradient(160deg, rgba(52, 40, 18, 0.92), rgba(23, 18, 10, 0.88));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-8);
  color: rgba(255, 245, 220, 0.92);
}

.client-auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 25%, rgba(247, 216, 124, 0.18), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(226, 169, 74, 0.14), transparent 60%);
  pointer-events: none;
}

.client-auth-aside > * {
  position: relative;
  z-index: 1;
}

.client-auth-logo {
  display: grid;
  gap: var(--space-4);
  max-width: 220px;
}

.client-auth-logo img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(247, 216, 124, 0.25));
}

.client-auth-tagline {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 245, 220, 0.85);
}

.client-auth-meta {
  display: grid;
  gap: var(--space-2);
  font-size: 0.95rem;
  color: rgba(255, 245, 220, 0.7);
}

.client-auth-meta strong {
  color: rgba(255, 245, 220, 0.92);
}

.client-auth-main {
  padding: var(--space-8);
  display: grid;
  gap: var(--space-6);
}

.client-auth-connections {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(13, 17, 28, 0.82);
  padding: var(--space-5);
  display: grid;
  gap: var(--space-3);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.4);
}

.client-auth-connections__header {
  display: grid;
  gap: var(--space-2);
}

.client-auth-connections__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(226, 232, 240, 0.92);
}

.client-auth-connections__hint {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(148, 163, 184, 0.82);
}

.client-auth-connections__status-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.client-auth-connections__item {
  background: rgba(22, 28, 46, 0.78);
}

.client-auth-connections__item .runtime-step__label {
  color: rgba(226, 232, 240, 0.88);
}

.client-auth-connections__item .runtime-step__badge {
  color: rgba(148, 163, 184, 0.9);
}

.client-auth-header {
  display: grid;
  gap: var(--space-3);
}

.client-auth-header h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.25rem);
}

.client-auth-header p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 54ch;
}

.client-auth-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.client-auth-grid .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.client-auth-grid .form {
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-4);
}

.client-auth-grid .form__actions {
  display: grid;
  gap: var(--space-2);
}

.client-auth-grid .inline-error {
  margin: 0;
}

.client-auth-status {
  margin-top: auto;
  padding-top: var(--space-4);
}

.client-auth-status[data-state='busy'] {
  opacity: 0.8;
}

.client-auth-status[data-state='error'] {
  border-top: 1px solid rgba(255, 89, 100, 0.35);
}

.client-auth-status[data-state='ready'] {
  border-top: 1px solid rgba(130, 255, 196, 0.25);
}

.client-auth-status p {
  margin: 0;
}

.client-auth-contacts {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.client-auth-contacts a {
  color: var(--color-accent);
  font-weight: 600;
}

@media (max-width: 960px) {
  .client-auth-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .client-auth-aside {
    order: 1;
    text-align: center;
    align-items: center;
  }

  .client-auth-logo {
    justify-items: center;
  }

  .client-auth-main {
    order: 2;
  }
}

@media (max-width: 640px) {
  .client-auth-main {
    padding: var(--space-6);
  }

  .client-auth-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
