* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #e8eef7; min-height: 100vh; }

/* NAVBAR */
.navbar {
  background: #3a5eaa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 76px;
  position: relative;
  z-index: 100;
}
.brand {
  font-family: 'Press Start 2P', cursive;
  color: white; font-size: 1.2rem; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none;
}
.btn-login-nav {
  background: transparent; color: white;
  border: 2px solid white; border-radius: 6px;
  padding: 7px 16px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background 0.15s;
}
.btn-login-nav:hover { background: rgba(255,255,255,0.15); }

/* PAGE BG */
.page-bg {
  min-height: calc(100vh - 76px);
  background-color: #dfe9f6;
  background-image:
    radial-gradient(circle, rgba(45,95,191,0.10) 1.5px, transparent 1.5px),
    linear-gradient(160deg, #e8f0fb 0%, #d5e2f5 100%);
  background-size: 28px 28px, 100% 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}

/* WELCOME CARD */
.welcome-card {
  background: white; border-radius: 20px;
  padding: 36px 40px; text-align: center;
  max-width: 720px; width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.welcome-card h2 {
  font-size: 1.2rem; font-weight: 800;
  color: #1a3a6b; margin-bottom: 8px;
}
.welcome-card p {
  font-size: 0.88rem; color: #555;
  line-height: 1.5; margin-bottom: 20px;
}
.btn-login-main {
  background: #2d5fbf; color: white;
  border: none; border-radius: 8px;
  padding: 12px 32px; font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-login-main:hover {
  background: #1a3a6b;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(45,95,191,0.3);
}

/* LANDING CARD CONTENT */
.landing-emblem { text-align: center; margin-bottom: 14px; }
.landing-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 1.3rem;
  color: #2d5fbf;
  margin-top: 10px;
  line-height: 1.5;
}
.landing-sub {
  font-size: 0.85rem; color: #666;
  letter-spacing: 2px; text-transform: uppercase; margin-top: 4px;
}

.landing-features {
  display: flex; justify-content: center; gap: 20px;
  margin: 22px 0 26px; flex-wrap: wrap;
}
.landing-features > div {
  width: 140px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; font-size: 0.85rem; color: #555;
  text-align: center;
}
.lf-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #dce8f8;
  display: flex; align-items: center; justify-content: center;
}
.lf-icon svg { width: 28px; height: 28px; fill: #4a72b8; }

.landing-footer {
  margin-top: 22px;
  font-size: 0.75rem;
  color: #999;
  text-align: center;
  letter-spacing: 0.5px;
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 500;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }

/* MODAL */
.modal {
  background: white; border-radius: 10px;
  width: 300px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-header {
  background: #2d5fbf; color: white;
  display: flex; align-items: center; justify-content: center;
  padding: 14px 20px; font-size: 1rem; font-weight: 700;
  position: relative;
}
.modal-close {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: white;
  font-size: 1.3rem; cursor: pointer; line-height: 1;
}
.modal-body {
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.modal-body label {
  font-size: 0.82rem; font-weight: 700;
  color: #333; margin-bottom: -4px;
}
.modal-body input {
  background: #e8eef7; border: none; border-radius: 6px;
  padding: 10px 12px; font-size: 0.95rem;
  outline: none; width: 100%;
}
.modal-body input:focus { outline: 2px solid #2d5fbf; }

/* Password wrapper */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 40px; }
.toggle-pw {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 0;
  display: flex; align-items: center;
}

.btn-login-modal {
  background: #2d5fbf; color: white;
  border: none; border-radius: 6px;
  padding: 11px; font-size: 0.92rem; font-weight: 700;
  cursor: pointer; margin: 6px auto 0;
  transition: background 0.15s;
  text-align: center;
  text-decoration: none;
  display: block;
  width: fit-content;
}
.btn-login-modal:hover { background: #1a3a6b; }

@media (max-width: 600px) {
  .welcome-card { padding: 24px 18px; }
  .landing-title { font-size: 1rem; }
  .landing-features { gap: 16px; }
  .brand { font-size: 0.85rem; }
  .modal { width: 92vw; }
}