*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #ffffff;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* ── Background decorative shapes ── */
.bg-shape {
  z-index: 0;
  background: linear-gradient(#cce0ff 0%, rgba(255,255,255,0.1) 100%);
  border-radius: 23.5rem;
  width: 450px;
  height: 400px;
  position: absolute;
  top: -120px;
  left: 10%;
  transform: translateX(-50%);
}

.bg-shape-bottom {
  z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, #cce0ff 100%);
  border-radius: 23.5rem;
  width: 380px;
  height: 340px;
  position: absolute;
  bottom: -100px;
  right: 2%;
  transform: translateX(30%);
}

/* ── Login card ── */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 48px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Logo ── */
.login-logo {
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FIX: constrain logo to a fixed size — not 100% width */
.login-logo img {
  width: 100%;
  object-fit: contain;
  display: block;
}

/* ── Form ── */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-field {
  width: 100%;
  padding: 15px 18px;
  background: #E2E6EA;
  border: none;
  border-radius: 10px;
  font-size: 0.97rem;
  color: #333;
  outline: none;
  transition: background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.input-field::placeholder {
  color: #888;
  font-size: 0.95rem;
}

.input-field:focus {
  background: #dce8fb;
  box-shadow: 0 0 0 2px rgba(59, 95, 192, 0.27);
}

/* ── Login button ── */
.btn-login {
  width: 100%;
  padding: 15px;
  background: #1e3a8a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  font-family: inherit;
}

.btn-login:hover {
  background: #1e40af;
  box-shadow: 0 4px 16px rgba(30, 58, 138, 0.20);
}

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

.btn-login.loading {
  opacity: 0.75;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Error message ── */
.error-msg {
  color: #dc2626;
  font-size: 0.82rem;
  text-align: center;
  min-height: 18px;
  display: none;
}

.error-msg.visible {
  display: block;
}

/* ── Footer ── */
.login-footer {
  margin-top: 44px;
  font-size: 0.875rem;
  color: #555;
  text-align: center;
}

.login-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.login-footer a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .login-container {
    padding: 36px 24px 30px;
    max-width: 100vw;
  }

  .login-logo img {
    width: 100px;
    height: 100px;
  }

  .bg-shape {
    width: 300px;
    height: 270px;
    left: 5%;
  }
}