:root {
  --bg: #070b16;
  --bg-soft: rgba(13, 18, 36, 0.82);
  --panel: rgba(18, 24, 44, 0.72);
  --panel-border: rgba(180, 201, 255, 0.18);
  --text: #f4f7ff;
  --muted: #a6b0cc;
  --primary: #6f7cff;
  --primary-strong: #8b5cf6;
  --accent: #45d0ff;
  --success: #41d8a3;
  --danger: #ff6f91;
  --shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Outfit", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(111, 124, 255, 0.22), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(69, 208, 255, 0.18), transparent 24%),
    linear-gradient(145deg, #050811, #091120 46%, #070d18 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.orb-left {
  width: 280px;
  height: 280px;
  left: -70px;
  top: 12%;
  background: rgba(111, 124, 255, 0.22);
}

.orb-right {
  width: 320px;
  height: 320px;
  right: -80px;
  bottom: 8%;
  background: rgba(69, 208, 255, 0.14);
}

.login-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 48px;
  padding: 42px 52px;
}

.hero-copy {
  max-width: 620px;
  padding-top: 30px;
}

.eyebrow,
.panel-kicker,
.brand-subtitle,
.field-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  max-width: 560px;
  font-size: clamp(44px, 5vw, 74px);
  line-height: 0.98;
  font-weight: 800;
}

.support-copy {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}

.login-panel-wrap {
  position: relative;
  grid-column: 2;
  justify-self: end;
  width: min(440px, 100%);
  z-index: 1;
}

.login-panel {
  position: relative;
  width: 100%;
  padding: 28px 28px 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(17, 23, 42, 0.75), rgba(10, 16, 31, 0.68));
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: panelDraggedIn 1.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.panel-glow {
  position: absolute;
  inset: -80px auto auto -40px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(111, 124, 255, 0.22);
  filter: blur(50px);
  pointer-events: none;
}

.brand-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.brand-badge {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 18px 38px rgba(111, 124, 255, 0.32);
}

.brand-name {
  font-size: 24px;
  font-weight: 800;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.panel-header h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.05;
}

.panel-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
}

.panel-header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.login-form {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 10px;
}

.field-label {
  font-size: 11px;
  color: rgba(213, 221, 246, 0.78);
  font-weight: 700;
}

.field-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(179, 192, 235, 0.14);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.field-shell:focus-within {
  border-color: rgba(111, 124, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(111, 124, 255, 0.14);
  transform: translateY(-1px);
}

.field-icon {
  flex: 0 0 auto;
  width: 26px;
  text-align: center;
  color: rgba(166, 176, 204, 0.75);
  font-size: 18px;
  font-weight: 700;
}

.field-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.field-shell input::placeholder {
  color: rgba(166, 176, 204, 0.62);
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.remember-row input {
  accent-color: var(--primary);
}

.meta-link {
  color: var(--accent);
  font-size: 13px;
  text-decoration: none;
}

.submit-btn {
  border: 0;
  min-height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 22px 40px rgba(95, 99, 230, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 44px rgba(95, 99, 230, 0.42);
  filter: brightness(1.04);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-arrow {
  font-size: 20px;
  line-height: 1;
}

.form-status {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

body.input-focused .login-panel {
  border-color: rgba(111, 124, 255, 0.38);
}

@media (max-width: 1100px) {
  .login-stage {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px 20px 36px;
  }

  .hero-copy {
    padding-top: 8px;
    max-width: 100%;
  }

  .login-panel-wrap {
    grid-column: auto;
    width: min(430px, 100%);
    justify-self: end;
  }
}

@media (max-width: 680px) {
  .login-stage {
    gap: 24px;
    padding: 22px 14px 28px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .support-copy {
    font-size: 15px;
  }

  .login-panel-wrap {
    justify-self: stretch;
    width: 100%;
  }

  .login-panel {
    padding: 22px 18px 20px;
    border-radius: 22px;
  }

  .panel-header h2 {
    font-size: 30px;
  }

  .form-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .hero-copy h1 {
    font-size: 32px;
  }

  .panel-header h2 {
    font-size: 26px;
  }

  .field-shell {
    min-height: 56px;
    padding: 0 14px;
  }
}
