* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  background: #fff;
  color: #0f172a;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
/* =========================
NAVBAR (DESKTOP)
========================= */
header {
  height: 88px;
  display: flex;
  align-items: center;
  padding: 0 40px; /* keeps logo close to left corner */
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 9999;
}
.nav {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left | center | right */
  align-items: center;
}

/* Left: Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
/*.brand span {
  font-weight: 700;
  font-size: 14px;
  color: #1e3a8a;
}*/

/* Center: Links */
.nav-center {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 56px;
  font-size: 16px;
  font-weight: 400;
}
/* Right: Actions */
.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn {
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 16px;
  background: transparent;
}
.btn-outline {
  border-color: #d1d5db;
  background: #fff;
  color: #0f172a;
}
.btn-solid {
  background: #1e3a8a;
  color: #fff;
  padding: 12px 20px;
}
/* =========================
MOBILE MENU (HIDDEN BY DEFAULT)
========================= */
#menu {
  display: none;
}

.hamburger {
  display: none; /* shown on small screens */
  width: 46px;
  height: 46px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  justify-self: end;
  cursor: pointer;
}
.hamburger i {
  width: 20px;
  height: 2px;
  background: #0f172a;
  position: relative;
  display: block;
}
.hamburger i::before,
.hamburger i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: #0f172a;
}
.hamburger i::before {
  top: -6px;
}
.hamburger i::after {
  top: 6px;
}
.mobile-panel {
  display: none;
  width: 100%;
  padding: 14px 0 0;
  grid-column: 1 / -1;
}

.mobile-box {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px;
  font-weight: 600;
}

.mobile-actions {
  display: flex;
  gap: 12px;
  padding: 10px 6px 6px;
}
.mobile-actions .btn {
  width: 100%;
}

/* checkbox toggle */
#menu:checked ~ .mobile-panel {
  display: block;
}

/* Page */
.page {
  min-height: 100vh;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
}
/* Center card */
.wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0 18px;
}
.card {
  width: 520px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  padding: 34px 34px 26px;
}

.title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 22px;
  color: #111827;
}

/* Google button */
.google-btn {
  width: 100%;
  height: 56px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  color: #111827;
  box-shadow: 0 10px 16px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}
.google-btn:active {
  transform: translateY(1px);
}

.gmark {
  width: 22px;
  height: 22px;
  display: block;
}

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 14px;
  color: #6b7280;
  font-size: 16px;
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: #e5e7eb;
  flex: 1;
}
/* Form */
.field {
  margin-top: 14px;
}
.label {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 10px;
}
.input {
  width: 100%;
  height: 54px;
  border: 1px solid #9ca3af;
  border-radius: 10px;
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  background: #fff;
}
.input:focus {
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.primary {
  width: 100%;
  height: 56px;
  border: none;
  border-radius: 10px;
  background: #1e3a8a;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  margin-top: 18px;
  cursor: pointer;
  box-shadow: 0 10px 16px rgba(30, 58, 138, 0.22);
}
.primary:active {
  transform: translateY(1px);
}

/* Bottom line */
.bottom {
  margin-top: 16px;
  text-align: center;
  font-size: 18px;
  color: #111827;
}
.bottom a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 600;
}

/* =========================
MEDIA QUERIES (1280 ↓)
========================= */
/*navbar*/
@media (max-width: 1280px) {
  header {
    padding: 0 32px;
  }
  .nav-center {
    gap: 44px;
  }
}

@media (max-width: 1024px) {
  header {
    padding: 0 24px;
  }
  .nav-center {
    gap: 34px;
  }
  .btn {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 14px 16px;
    align-items: flex-start;
  }

  .nav {
    grid-template-columns: 1fr auto; /* logo | hamburger */
    row-gap: 12px;
  }

  .nav-center,
  .nav-right {
    display: none; /* hide desktop center & right */
  }

  .hamburger {
    display: inline-flex; /* show hamburger */
  }
}

@media (max-width: 1280px) {
  .page {
    padding: 30px 18px;
  }
  .card {
    width: 500px;
  }
  .title {
    font-size: 38px;
  }
}

@media (max-width: 1024px) {
  .card {
    width: 480px;
    padding: 30px 28px 22px;
  }
  .title {
    font-size: 36px;
  }
  .google-btn {
    height: 54px;
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 22px 14px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .card {
    width: 460px;
    padding: 26px 22px 20px;
  }
  .title {
    font-size: 32px;
  }
  .label {
    font-size: 16px;
  }
  .input {
    height: 52px;
  }
  .primary {
    height: 54px;
    font-size: 18px;
  }
  .bottom {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 0;
  }
  .brand span {
    font-size: 13px;
  }
  .card {
    padding: 22px 16px 18px;
    border-radius: 12px;
  }
  .title {
    font-size: 28px;
    margin-bottom: 18px;
  }
  .google-btn {
    height: 52px;
    font-size: 16px;
  }
  .divider {
    font-size: 14px;
  }
  .input {
    height: 50px;
    font-size: 15px;
  }
  .primary {
    height: 52px;
    font-size: 17px;
  }
}
