.auth-wrap {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
}

.auth-layout {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
}

.auth-brand {
  border-radius: 22px;
  padding: 1.24rem;
  display: grid;
  align-content: space-between;
  min-height: 470px;
  background:
    radial-gradient(circle at 18% 14%, rgba(124, 58, 237, 0.38), transparent 44%),
    radial-gradient(circle at 92% 84%, rgba(0, 229, 255, 0.23), transparent 46%),
    rgba(16, 20, 34, 0.84);
}

.auth-brand h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  max-width: 15ch;
}

.auth-brand p {
  margin-top: 0.72rem;
  color: var(--text-secondary);
  max-width: 44ch;
}

.auth-feature-list {
  display: grid;
  gap: 0.56rem;
  margin-top: 1rem;
}

.auth-feature {
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.66rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.auth-card {
  border-radius: 22px;
  padding: 1.24rem;
}

.auth-card h1 {
  font-size: 2rem;
}

.auth-card p {
  margin-top: 0.55rem;
  color: var(--text-secondary);
}

.auth-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.auth-form label {
  color: #dce3ff;
  font-size: 0.84rem;
  font-weight: 600;
}

.auth-form small {
  color: var(--text-muted);
}

.oauth-divider {
  margin-top: 0.95rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  position: relative;
}

.oauth-divider::before,
.oauth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 82px);
  height: 1px;
  background: var(--border-subtle);
}

.oauth-divider::before {
  left: 0;
}

.oauth-divider::after {
  right: 0;
}

.oauth-row {
  margin-top: 0.84rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.oauth-row button {
  padding: 0.68rem;
}

.auth-footer {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.auth-footer a {
  color: #aeefff;
  text-decoration: none;
}

.password-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

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

  .auth-brand {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .oauth-row {
    grid-template-columns: 1fr;
  }
}
