:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090a17;
  color: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 14%, rgba(124, 58, 237, 0.4), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(245, 191, 35, 0.22), transparent 28%),
    linear-gradient(145deg, #080912 0%, #11142d 48%, #090a17 100%);
}

.auth-shell {
  width: min(100%, 460px);
}

.auth-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 28px;
  background: rgba(16, 18, 42, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.auth-brand strong {
  display: block;
  font-size: 18px;
}

.auth-brand span {
  color: #c9c4ea;
  font-size: 13px;
}

h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 7vw, 42px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.auth-copy {
  margin: 0 0 24px;
  color: #d8d3f0;
  line-height: 1.55;
}

.auth-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #f4f1ff;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.94);
  color: #151525;
  font: inherit;
}

input:focus {
  border-color: #f5bf23;
  box-shadow: 0 0 0 4px rgba(245, 191, 35, 0.16);
}

.auth-button,
.auth-google {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease;
}

.auth-button {
  margin-top: 6px;
  background: linear-gradient(135deg, #f5bf23, #ffd76a);
  color: #17120a;
}

.auth-google {
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.auth-button:not(:disabled):hover,
.auth-google:not(:disabled):hover {
  transform: translateY(-1px);
}

.auth-button:disabled,
.auth-google:disabled {
  cursor: progress;
  opacity: 0.65;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: #bcb6dc;
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.auth-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: #d8d3f0;
  line-height: 1.45;
}

.auth-status[data-tone='error'] {
  color: #ffb4b4;
}

.auth-status[data-tone='success'] {
  color: #a7f3d0;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: #d8d3f0;
  font-size: 14px;
}

.auth-links a,
.auth-footnote a {
  color: #f5bf23;
  font-weight: 800;
  text-decoration: none;
}

.auth-links a:hover,
.auth-footnote a:hover {
  text-decoration: underline;
}

.auth-footnote {
  margin: 18px 0 0;
  color: #bcb6dc;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 520px) {
  body {
    padding: 14px;
  }

  .auth-card {
    padding: 22px;
    border-radius: 22px;
  }
}
