:root {
  --bg-start: #0f1020;
  --bg-end: #1c1b3a;
  --panel: #ffffff;
  --accent: #5a5be6;
  --accent-2: #7b78f7;
  --text: #1c1c1c;
  --muted: #6e6e7a;
  --border: #e6e6ef;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: radial-gradient(1000px 600px at 10% 10%, #2a2a58 0%, var(--bg-start) 40%, var(--bg-end) 100%);
  min-height: 100vh;
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(1024px, 96vw);
  background: var(--panel);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(12, 12, 35, 0.35);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-left {
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--accent);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 6px;
}

.brand-mark::before {
  width: 18px;
  height: 28px;
  left: 8px;
  top: 8px;
  transform: skewX(-12deg);
}

.brand-mark::after {
  width: 12px;
  height: 24px;
  right: 8px;
  top: 10px;
  transform: skewX(-12deg);
  opacity: 0.8;
}

.welcome h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.welcome p {
  color: var(--muted);
  font-size: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.form-group input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  transition: border 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.form-row a {
  color: var(--accent);
  text-decoration: none;
}

.login-btn {
  margin-top: 6px;
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(90, 91, 230, 0.25);
}

.legal {
  font-size: 11px;
  color: var(--muted);
}

.legal a {
  color: var(--accent);
  text-decoration: none;
}

.signup {
  font-size: 12px;
  color: var(--muted);
}

.signup a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.login-right {
  background: linear-gradient(160deg, #6a62ff 0%, #5b6de8 45%, #4c4bd9 100%);
  color: #fff;
  padding: 40px;
  display: grid;
  place-items: center;
}

.showcase {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 26px;
  display: grid;
  gap: 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.showcase-illustration {
  height: 220px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.45), transparent 60%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.25), transparent 60%);
  position: relative;
  overflow: hidden;
}

.showcase-illustration::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  bottom: -40px;
  right: -30px;
}

.showcase-illustration::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  top: 40px;
  left: 50px;
}

.showcase h2 {
  font-size: 18px;
}

.showcase p {
  font-size: 13px;
  opacity: 0.8;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 18px;
  height: 6px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.dots span.active {
  background: #fff;
  width: 26px;
}

@media (max-width: 900px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-right {
    order: -1;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .login-left {
    padding: 32px 24px;
  }

  .login-right {
    padding: 24px;
  }

  .showcase {
    max-width: 100%;
  }
}
