* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background:
    radial-gradient(circle at 18% 22%, rgba(99, 102, 241, 0.18), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(20, 184, 166, 0.14), transparent 24%),
    radial-gradient(circle at 70% 82%, rgba(56, 189, 248, 0.08), transparent 22%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 45%, #111827 100%);
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.auth-shell {
  position: relative;
  width: 100%;
  max-width: 960px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.6;
  pointer-events: none;
}

.bg-glow-a {
  width: 260px;
  height: 260px;
  left: 60px;
  top: 20px;
  background: rgba(99, 102, 241, 0.22);
}

.bg-glow-b {
  width: 220px;
  height: 220px;
  right: 40px;
  bottom: 30px;
  background: rgba(20, 184, 166, 0.18);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  padding: 36px;
  border-radius: 28px;
  background: rgba(9, 14, 27, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.brand-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.prefect-mark {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
}

.prefect-shape {
  display: block;
  width: 68px;
  height: 52px;
  border-radius: 0 26px 26px 0;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 65%, #3b82f6 100%);
  box-shadow:
    0 12px 30px rgba(79, 70, 229, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.brand-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8b9cff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #f8fafc;
}

.subtitle {
  margin: 14px 0 0;
  max-width: 460px;
  color: #94a3b8;
  font-size: 16px;
  line-height: 1.6;
}

.divider {
  height: 1px;
  margin: 28px 0 24px;
  background: linear-gradient(
    90deg,
    rgba(148, 163, 184, 0),
    rgba(148, 163, 184, 0.18),
    rgba(148, 163, 184, 0)
  );
}

.content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.description {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
}

.ms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 16px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 100%);
  color: #0f172a;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.ms-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.01);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.ms-button:active {
  transform: translateY(0);
}

.ms-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ms-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 700px) {
  .page {
    padding: 20px;
  }

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

  .brand-row {
    gap: 16px;
    align-items: center;
  }

  .prefect-mark {
    width: 58px;
    height: 58px;
  }

  .prefect-shape {
    width: 54px;
    height: 42px;
    border-radius: 0 22px 22px 0;
  }

  h1 {
    font-size: 36px;
  }

  .subtitle,
  .description {
    font-size: 15px;
  }

  .ms-button {
    min-height: 54px;
    font-size: 15px;
  }
}