:root {
  --bg: #080a14;
  --panel: rgba(14, 18, 34, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f8ff;
  --muted: #a5aec8;
  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --danger: #f87171;
  --good: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.2), transparent 30%),
    radial-gradient(circle at right top, rgba(34, 211, 238, 0.14), transparent 22%),
    linear-gradient(180deg, #070910 0%, #090c16 100%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.login-shell {
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.login-hero,
.login-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.login-hero {
  padding: 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(9, 12, 24, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(34, 211, 238, 0.28)),
    url("../assets/logos/bored-buddy.svg") center/82% no-repeat;
  color: transparent;
  font-size: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-hero h1,
.login-card h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.login-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.hero-copy,
.card-head p,
.footer-note,
.field span {
  color: var(--muted);
}

.hero-copy {
  max-width: 56ch;
  margin: 18px 0 0;
  line-height: 1.7;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-pills span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.login-card {
  padding: 30px;
  border-radius: 28px;
  background: var(--panel);
}

.card-head p {
  margin-top: 12px;
  line-height: 1.7;
}

.auth-message {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  line-height: 1.6;
}

.auth-message.error {
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
}

.auth-message.success {
  border-color: rgba(52, 211, 153, 0.28);
  color: #bbf7d0;
}

.auth-message.info {
  border-color: rgba(34, 211, 238, 0.28);
  color: #bae6fd;
}

.oauth-button,
.action-button {
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.oauth-button:hover,
.action-button:hover {
  transform: translateY(-1px);
}

.oauth-button {
  width: 100%;
  margin-top: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07101a;
  font-weight: 800;
}

.divider {
  position: relative;
  margin: 24px 0;
  text-align: center;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line);
}

.divider span {
  position: relative;
  padding: 0 12px;
  background: var(--panel);
  color: var(--muted);
}

.email-form {
  display: grid;
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field input {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: 0;
}

.field input:focus {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}

.form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07101a;
  font-weight: 800;
}

.action-button.ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--line);
}

.footer-note {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  font-size: 0.95rem;
}

code {
  color: #d8c5ff;
}

@media (max-width: 920px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .login-shell {
    width: min(100% - 20px, 1160px);
  }

  .form-actions {
    grid-template-columns: 1fr;
  }
}
