:root {
  --bg1: #07111f;
  --bg2: #0b2545;
  --card: rgba(9, 20, 38, 0.86);
  --border: rgba(120, 190, 255, 0.22);
  --text: #eaf4ff;
  --muted: #98acc7;
  --accent: #2fd4ff;
  --accent2: #2df29a;
  --danger: #ff5d73;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(47, 212, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(45, 242, 154, 0.12), transparent 24%),
    linear-gradient(135deg, var(--bg1), var(--bg2));
  overflow: hidden;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.25));
}

.city-glow {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -40px;
  height: 260px;
  background:
    linear-gradient(to top, rgba(0,0,0,0.75), transparent),
    repeating-linear-gradient(90deg, rgba(47,212,255,0.16) 0 2px, transparent 2px 80px);
  opacity: 0.5;
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: 56px 7vw;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.02;
  margin: 24px 0 18px;
  letter-spacing: -1.5px;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-row img {
  width: 260px;
  max-height: 96px;
  object-fit: contain;
}

.pill {
  display: inline-flex;
  margin-top: 24px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(47, 212, 255, 0.08);
  font-size: 13px;
  letter-spacing: 0.4px;
}

.login-card {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 24px 80px rgba(0,0,0,0.46);
  backdrop-filter: blur(18px);
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login-card .sub {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 14px;
}

label {
  display: block;
  margin: 16px 0 8px;
  color: #c8d9ef;
  font-size: 13px;
}

input {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(150, 190, 230, 0.22);
  background: rgba(4, 12, 24, 0.72);
  color: var(--text);
  padding: 0 14px;
  outline: none;
  font-size: 15px;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47,212,255,0.12);
}

button {
  width: 100%;
  height: 50px;
  margin-top: 24px;
  border: 0;
  border-radius: 15px;
  color: #001320;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 32px rgba(47, 212, 255, 0.18);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.error {
  display: none;
  margin-top: 16px;
  color: var(--danger);
  font-size: 13px;
}

.footer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 900px) {
  body { overflow: auto; }
  .page {
    grid-template-columns: 1fr;
    padding: 36px 22px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .login-card {
    margin: 0;
    max-width: none;
  }
}

/* ============================================================
   VALYX LOGIN VISUAL REFINEMENT QA-7B2C-3
   ============================================================ */

.hero {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero h1.hero-title {
  margin: 32px 0 0;
  max-width: 980px;
  font-size: inherit;
  line-height: 1;
  letter-spacing: normal;
}

.hero-title-primary,
.hero-title-secondary {
  display: block;
}

.hero-title-primary {
  font-size: clamp(2.25rem, 2.7vw, 3rem);
  line-height: 1.08;
  font-weight: 750;
  letter-spacing: -0.025em;
  color: #f8fafc;
  white-space: nowrap;
}

.hero-title-secondary {
  margin-top: 12px;
  font-size: clamp(1.65rem, 1.95vw, 2.1rem);
  line-height: 1.2;
  font-weight: 620;
  letter-spacing: -0.015em;
  color: #dbeafe;
}

.hero p.hero-summary {
  max-width: 760px;
  margin: 26px 0 0;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.65;
  color: #a9bce2;
}

.security-notice {
  max-width: 720px;
  margin-top: clamp(38px, 6vh, 78px);
  padding: 14px 17px;
  border-left: 3px solid rgba(125, 211, 252, 0.68);
  border-radius: 0 8px 8px 0;
  background: rgba(15, 23, 42, 0.34);
  color: #94a3b8;
}

.security-notice-title {
  margin-bottom: 5px;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
}

.security-notice-text {
  max-width: 650px;
  font-size: 0.78rem;
  line-height: 1.55;
}

.login-card .sub {
  line-height: 1.5;
}

@media (max-width: 1250px) {
  .hero-title-primary {
    white-space: normal;
  }

  .security-notice {
    margin-top: 36px;
  }
}

@media (max-width: 900px) {
  .hero h1.hero-title {
    margin-top: 24px;
  }

  .hero-title-primary {
    font-size: clamp(2rem, 7vw, 2.65rem);
  }

  .hero-title-secondary {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
  }

  .security-notice {
    margin-top: 28px;
  }
}
