html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #eef1f7;
  background-image: radial-gradient(#c5cde0 1px, transparent 1px);
  background-size: 22px 22px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 16px;
}

.login-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(28, 69, 137, 0.13), 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

.login-card-accent {
  height: 6px;
  background: linear-gradient(90deg, #1c4589, #2d6be4);
}

.login-card-body {
  padding: 36px 40px 32px;
}

.login-logo {
  display: block;
  max-width: 180px;
  max-height: 70px;
  object-fit: contain;
  margin: 0 auto 24px;
}

.login-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 6px;
}

.login-subheading {
  font-size: 0.88rem;
  color: #6b7280;
  text-align: center;
  margin-bottom: 28px;
}

.login-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.login-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: #111827;
  background: #f9fafb;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  margin-bottom: 18px;
}

.login-input:focus {
  border-color: #1c4589;
  box-shadow: 0 0 0 3px rgba(28, 69, 137, 0.12);
  background: #fff;
}

.login-btn {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 0.97rem;
  font-weight: 600;
  color: #fff;
  background: #1c4589;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.18s, transform 0.1s;
  margin-top: 4px;
}

.login-btn:hover {
  background: #163a73;
}

.login-btn:active {
  transform: scale(0.98);
}

.login-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.87rem;
  color: #6b7280;
}

.login-footer a {
  color: #1c4589;
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-dev {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #dde3ee;
  font-size: 0.9rem;
  color: #374151;
  letter-spacing: 0.01em;
}

.login-dev a {
  color: #1c4589;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.login-dev a:hover {
  text-decoration: underline;
}

/* signup page reuse */
.form-signup {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: auto;
}
.form-signup .checkbox { font-weight: 400; }
.form-signup .form-control {
  position: relative;
  box-sizing: border-box;
  height: auto;
  padding: 10px;
  font-size: 16px;
}
.form-signup .form-control:focus { z-index: 2; }
.form-signup input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.form-signup input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
