:root {
  --ink: #f4f6fb;
  --muted: #9aa3b5;
  --line: #2a3142;
  --panel: #12141c;
  --accent: #7c6bff;
  --accent-2: #9b6dff;
  --font: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: #07080d;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.brand-panel {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.35rem;
  background:
    radial-gradient(900px 500px at 20% 20%, rgba(124, 107, 255, 0.35), transparent 60%),
    radial-gradient(700px 400px at 80% 80%, rgba(88, 60, 180, 0.35), transparent 55%),
    linear-gradient(160deg, #1a1440 0%, #120e2a 45%, #0c1024 100%);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(180deg, #8b7cff, #6a4dff);
  box-shadow: 0 8px 20px rgba(108, 80, 255, 0.45);
}

.brand-title {
  font-weight: 700;
  font-size: clamp(2.6rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  margin: 0.4rem 0 0;
  letter-spacing: -0.03em;
}

.brand-title em {
  font-style: italic;
  font-weight: 650;
  color: #b9a6ff;
}

.brand-copy {
  max-width: 38ch;
  color: #c5cbe0;
  line-height: 1.55;
  margin: 0;
  font-size: 0.98rem;
}

.brand-features {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
  color: #e6e9f5;
  font-size: 0.95rem;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  color: #d7ccff;
  background: rgba(255, 255, 255, 0.08);
}

.brand-foot {
  margin-top: auto;
  color: #8b93a7;
  font-size: 0.82rem;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: #0c0e14;
}

.card {
  width: min(440px, 100%);
  background: transparent;
  padding: 0.4rem 0.2rem 1rem;
}

h2 {
  margin: 0 0 0.35rem;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1rem;
}

.muted {
  color: var(--muted);
  margin: 0 0 1.4rem;
  font-size: 0.92rem;
}

.muted a,
.switch a {
  color: #b7a6ff;
  font-weight: 600;
  text-decoration: none;
}

.social {
  display: grid;
  gap: 0.7rem;
}

.social-btn,
.primary,
.ghost {
  font: inherit;
  cursor: pointer;
  border-radius: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  background: #1a1e2a;
  color: #f4f6fb;
  border: 1px solid #2c3344;
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.social-btn:hover,
.ghost:hover {
  border-color: #4a5470;
}

.idp {
  width: 18px;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.idp.google {
  color: #ea4335;
}

.idp.li {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: #0a66c2;
  color: white;
  font-size: 0.68rem;
  line-height: 16px;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 1.15rem 0 1rem;
  color: #8b93a7;
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: #2a3142;
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #d5dbeb;
}

input {
  font: inherit;
  color: var(--ink);
  border: 1px solid #2c3344;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  background: #171b26;
}

input::placeholder {
  color: #6d7588;
}

input:focus {
  outline: 2px solid rgba(140, 120, 255, 0.35);
  border-color: #8b78ff;
}

.primary {
  border: none;
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  color: white;
  font-weight: 700;
  background: linear-gradient(90deg, #7a5cff, #a06bff);
  box-shadow: 0 10px 24px rgba(122, 92, 255, 0.35);
}

.primary:hover {
  filter: brightness(1.06);
}

.ghost {
  margin-top: 0.9rem;
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.72rem 0.9rem;
}

.switch {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.alert {
  width: min(440px, 100%);
  margin-bottom: 0.8rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.alert.error {
  background: #3a1d24;
  color: #ffb4c0;
}

.alert.ok {
  background: #163028;
  color: #b6f0d2;
}

.user-dl {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.user-dl dt {
  color: var(--muted);
}

.user-dl dd {
  margin: 0;
  word-break: break-all;
}

.profile {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .brand-foot {
    margin-top: 2rem;
  }
}
