:root {
  --bg: #0b1118;
  --bg-soft: rgba(17, 26, 37, 0.86);
  --panel: rgba(9, 16, 24, 0.86);
  --panel-strong: rgba(14, 21, 30, 0.96);
  --text: #ecf3f8;
  --muted: #9eb0bd;
  --line: rgba(180, 211, 227, 0.14);
  --teal: #62d0c2;
  --teal-strong: #34b7a5;
  --amber: #e4c272;
  --danger: #f06b6b;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(62, 151, 142, 0.22), transparent 32%),
    radial-gradient(circle at 80% 15%, rgba(228, 194, 114, 0.18), transparent 30%),
    linear-gradient(180deg, #081018 0%, #0d1721 52%, #091018 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  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: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent);
  pointer-events: none;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.ambient {
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.34;
  pointer-events: none;
}

.ambient-left {
  top: 4rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(78, 174, 161, 0.55), transparent 65%);
  animation: drift 18s ease-in-out infinite;
}

.ambient-right {
  right: -8rem;
  bottom: -6rem;
  background: radial-gradient(circle, rgba(229, 186, 93, 0.28), transparent 65%);
  animation: drift 20s ease-in-out infinite reverse;
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 460px);
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0;
  align-items: center;
}

.hero,
.auth-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 2.5rem;
  border-radius: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(98, 208, 194, 0.2);
  border-radius: 999px;
  color: #c0d3db;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  background: rgba(13, 24, 34, 0.66);
}

.eyebrow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(98, 208, 194, 0.75);
}

h1 {
  margin: 1.4rem 0 1rem;
  max-width: 12ch;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.info-card {
  padding: 1rem;
  border-radius: 22px;
  background: var(--bg-soft);
  border: 1px solid rgba(180, 211, 227, 0.09);
}

.card-label,
.panel-kicker,
.mini-label {
  display: block;
  margin-bottom: 0.55rem;
  color: #8abeb7;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-card strong,
.mini-stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}

.info-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.auth-panel {
  position: relative;
  border-radius: 28px;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(7, 14, 21, 0.96), rgba(10, 18, 27, 0.96));
}

.panel-topline {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--amber) 28%, var(--teal) 72%, transparent 100%);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.1;
}

.status-pill {
  white-space: nowrap;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(98, 208, 194, 0.2);
  background: rgba(98, 208, 194, 0.08);
  color: #cff1eb;
  font-size: 0.82rem;
}

.login-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.login-form label {
  display: grid;
  gap: 0.55rem;
}

.login-form span {
  color: #c6d3dc;
  font-size: 0.9rem;
}

.login-form input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(190, 215, 227, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.login-form input:focus {
  border-color: rgba(98, 208, 194, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.login-form input::placeholder {
  color: #708392;
}

.login-form button {
  margin-top: 0.2rem;
  padding: 1rem 1.1rem;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #ebcd88 0%, #63d6ca 100%);
  color: #071118;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.login-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(99, 214, 202, 0.22);
}

.panel-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.mini-stat,
.service-row {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid rgba(190, 215, 227, 0.08);
}

.service-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #dbe6ed;
  font-size: 0.92rem;
}

.service-state {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.service-ok {
  color: #cdf4ee;
  background: rgba(98, 208, 194, 0.12);
}

.service-wait {
  color: #f9e5b1;
  background: rgba(228, 194, 114, 0.14);
}

.rise {
  opacity: 0;
  transform: translateY(20px);
  animation: riseIn 800ms ease forwards;
}

.rise-1 { animation-delay: 70ms; }
.rise-2 { animation-delay: 150ms; }
.rise-3 { animation-delay: 230ms; }
.rise-4 { animation-delay: 310ms; }

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(1.2rem, -1rem, 0) scale(1.06);
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    padding: 1.5rem 0 2rem;
  }

  .hero-grid,
  .panel-footer {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .layout {
    width: min(100% - 1rem, 1180px);
  }

  .hero,
  .auth-panel {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 2.4rem;
  }
}
