@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap");

* {
  box-sizing: border-box;
}

.login-page {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(147, 165, 255, 0.35), transparent 42%),
    radial-gradient(circle at bottom right, rgba(25, 135, 84, 0.12), transparent 38%),
    linear-gradient(160deg, #eef2ff 0%, #f9f9f9 45%, #f3f6ff 100%);
}

.login-wrapper {
  width: 100%;
  max-width: 440px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 32px;
  box-shadow:
    0 18px 45px rgba(55, 72, 140, 0.12),
    0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(147, 165, 255, 0.25);
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(55, 72, 140, 0.12);
  border: 1px solid #eef2ff;
}

.login-logo {
  width: 72px;
  height: auto;
}

.login-brand h1 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1f2937;
}

.login-brand p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b7280;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
}

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #93a5ff;
  font-size: 1rem;
  pointer-events: none;
}

.login-field .form-control {
  height: 48px;
  padding: 10px 14px 10px 42px;
  border: 1px solid #d7def8;
  border-bottom: 3px solid #93a5ff;
  border-radius: 10px;
  background: #f8faff;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-field .form-control::placeholder {
  color: #9ca3af;
  font-weight: 500;
}

.login-field .form-control:focus {
  background: #fff;
  border-color: #93a5ff;
  border-bottom-color: #6782e5;
  box-shadow: 0 0 0 4px rgba(147, 165, 255, 0.18);
  outline: none;
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.login-error i {
  flex-shrink: 0;
  margin-top: 1px;
}

.login-btn {
  width: 100%;
  height: 50px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #22a06b 0%, #198754 55%, #157347 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(25, 135, 84, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(25, 135, 84, 0.34);
  filter: brightness(1.03);
}

.login-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(25, 135, 84, 0.24);
}

.login-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.login-btn .spinner-border {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

@media (max-width: 480px) {
  .login-card {
    padding: 28px 20px 24px;
    border-radius: 14px;
  }

  .login-brand h1 {
    font-size: 1.3rem;
  }
}
