:root {
  
  --bg-gradient-1: #020617;
  --bg-gradient-2: #041226;
  --accent: #27b4ff;
  --accent-soft: rgba(39, 180, 255, 0.15);
  --accent-strong: #11a4ff;
  --accent-secondary: #7ad0ff;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --card-bg: rgba(8, 17, 35, 0.96);
  --border-color: rgba(148, 163, 184, 0.3);
  --error: #ef4444;
  --silver: #d8dde7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--bg-gradient-2), var(--bg-gradient-1));
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.grid-background {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.6) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.5;
  z-index: -2;
}

.node {
  position: fixed;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-strong), transparent 60%);
  opacity: 0.45;
  filter: blur(6px);
  z-index: -3;
}

.node.node-1 {
  width: 280px;
  height: 280px;
  top: 6%;
  left: 8%;
}

.node.node-2 {
  width: 240px;
  height: 240px;
  bottom: 4%;
  right: 4%;
}

.node.node-3 {
  width: 180px;
  height: 180px;
  top: 55%;
  left: 35%;
}

.container {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 880px) {
  .container {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero {
    order: 2;
    text-align: center;
  }
  .hero-desc {
    margin-inline: auto;
  }
  .hero-logo-wrapper {
    justify-content: center;
  }
  .login-card {
    order: 1;
  }
}

/* --- HERO SECTION --- */
.hero {
  padding: 20px 0;
}

.hero-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.hero-logo {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #c4cedd, #63708a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(148, 163, 184, 0.5);
  padding: 8px;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.hero-logo-text {
  text-align: left;
}

.hero-logo-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-logo-title span.cyber {
  color: var(--silver);
}

.hero-logo-title span.eye {
  background: linear-gradient(to left, var(--accent-secondary), var(--accent-strong));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-logo-sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(10, 22, 46, 0.85);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  backdrop-filter: blur(12px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}

.hero-title {
  font-size: 36px;
  line-height: 1.4;
  margin-bottom: 12px;
  font-weight: 700;
}

.hero-highlight {
  background: radial-gradient(circle at 20% 0, #ffffff, var(--accent-secondary), var(--accent-strong));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 26px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-muted);
}

.metric {
  padding: 14px 18px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.9));
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  min-width: 170px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.metric-label {
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-secondary);
}

/* --- LOGIN CARD --- */
.login-card {
  background: linear-gradient(145deg, rgba(8, 19, 40, 0.98), rgba(8, 19, 40, 0.96));
  border-radius: 26px;
  border: 1px solid var(--border-color);
  padding: 28px 24px 24px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  left: -40%;
  top: -40%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(39, 180, 255, 0.3), transparent 65%);
  opacity: 0.4;
  pointer-events: none;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff, #c4cedd, #57657f);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(148, 163, 184, 0.7);
  padding: 4px;
}

.brand-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-name span.cyber {
  color: var(--silver);
}

.brand-name span.eye {
  color: var(--accent-secondary);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.env-pill {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(56, 189, 248, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.login-title {
  font-size: 18px;
  margin-bottom: 4px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.login-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.field-label span.main {
  color: var(--text-main);
  font-weight: 500;
}

.field-label span.optional {
  font-size: 11px;
  opacity: 0.8;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.input {
  width: 100%;
  padding: 10px 12px;
  padding-left: 32px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: radial-gradient(circle at top, #020617, #020617);
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: border 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, transform 0.08s ease;
}

.input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.input:focus {
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 1px rgba(39, 180, 255, 0.6), 0 0 20px rgba(39, 180, 255, 0.35);
  background: #020617;
  transform: translateY(-1px);
}

.input-error {
  border-color: var(--error);
}

.error-text {
  font-size: 11px;
  color: var(--error);
  margin-top: 4px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox input {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: #020617;
  accent-color: var(--accent-strong);
}

.link {
  font-size: 12px;
  color: var(--accent-secondary);
  text-decoration: none;
  cursor: pointer;
}

.link:hover {
  text-decoration: underline;
}

.btn-primary {
  margin-top: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to left, var(--accent-strong), var(--accent-secondary));
  color: #020617;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 14px 35px rgba(10, 132, 255, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(10, 132, 255, 0.55);
  filter: brightness(1.04);
}

.btn-primary:active {
  transform: translateY(0px) scale(0.985);
  box-shadow: 0 10px 26px rgba(10, 132, 255, 0.4);
}

.btn-icon {
  font-size: 14px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 10px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.35);
}

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

.small-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.small-note strong {
  color: var(--accent-secondary);
}
