/* Nexus Secure Access — decoy VPN portal */

:root {
  --blue:       #0d6efd;
  --blue-dark:  #0a58ca;
  --blue-deep:  #031633;
  --slate:      #1c2b3a;
  --slate-soft: #3d5166;
  --line:       #d0d8e4;
  --bg:         #f0f4f8;
  --card:       #ffffff;
  --danger:     #dc3545;
  --danger-bg:  #fff5f5;
  --shadow:     0 4px 20px rgba(10, 30, 60, .10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--slate);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Top bar ──────────────────────────────────────────────────────── */
.topbar {
  background: var(--blue-deep);
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.1px;
}
.topbar-logo {
  width: 28px;
  height: 28px;
  background: var(--blue);
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.topbar-links {
  display: flex;
  gap: 24px;
}
.topbar-links a {
  color: rgba(255,255,255,.7);
  font-size: 13px;
}
.topbar-links a:hover { color: #fff; text-decoration: none; }

/* ── Page wrapper ─────────────────────────────────────────────────── */
.page-wrap {
  min-height: calc(100vh - 56px - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* ── Login card ───────────────────────────────────────────────────── */
.login-card {
  background: var(--card);
  border-radius: 6px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 420px;
  padding: 40px 40px 32px;
}
.login-card-header {
  text-align: center;
  margin-bottom: 28px;
}
.login-card-header .product-icon {
  width: 52px;
  height: 52px;
  background: var(--blue);
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
}
.login-card-header .product-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-card-header h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: -0.2px;
}
.login-card-header p {
  margin: 0;
  font-size: 13px;
  color: var(--slate-soft);
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--slate);
  background: #fff;
  transition: border-color .15s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 20px;
  font-size: 13px;
}
.form-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-soft);
  cursor: pointer;
}
.form-options a { color: var(--blue); }

.btn-primary {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 11px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.btn-primary:hover { background: var(--blue-dark); }

.alert {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid #f5c6cb;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
  background-size: cover;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--slate-soft);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  line-height: 1.8;
}

/* ── Bottom bar ───────────────────────────────────────────────────── */
.bottombar {
  background: var(--blue-deep);
  padding: 0 32px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bottombar small {
  color: rgba(255,255,255,.45);
  font-size: 11px;
}
.bottombar-links {
  display: flex;
  gap: 20px;
}
.bottombar-links a {
  color: rgba(255,255,255,.45);
  font-size: 11px;
}
.bottombar-links a:hover { color: rgba(255,255,255,.8); text-decoration: none; }

/* ── 404 ──────────────────────────────────────────────────────────── */
.page-404 {
  display: grid;
  place-items: center;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
}
.page-404 .card {
  background: var(--card);
  padding: 48px 64px;
  border-radius: 6px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.page-404 h1 {
  color: var(--slate);
  font-size: 56px;
  margin: 0 0 12px;
  letter-spacing: -2px;
}
.page-404 p { color: var(--slate-soft); }
.page-404 a { color: var(--blue); }

@media (max-width: 480px) {
  .login-card { padding: 28px 20px 24px; }
  .topbar-links { display: none; }
}
