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

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

body {
  font-family: "Montserrat", sans-serif;
  background: linear-gradient(135deg, #f0f2f5 0%, #e0eff0 50%, #d5e8ea 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container {
  background: white;
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px -10px rgba(69, 147, 154, 0.15),
    0 8px 16px -6px rgba(0, 0, 0, 0.06);
  animation: fadeInUp 0.5s ease-out;
  text-align: center;
}

.login-logo {
  margin-bottom: 1.5rem;
}

.login-logo img {
  width: 80px;
  height: auto;
  border-radius: 1rem;
}

h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 2rem;
  font-weight: 500;
}

form#loginForm .form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

form#loginForm label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  display: block;
  margin-bottom: 0.5rem;
}

form#loginForm input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: "Montserrat", sans-serif;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: #1f2937;
  background: #f9fafb;
  box-sizing: border-box;
}

form#loginForm input:focus {
  border-color: #45939a;
  box-shadow: 0 0 0 3px rgba(69, 147, 154, 0.08);
  background: white;
}

form#loginForm input::placeholder {
  color: #9ca3af;
}

form#loginForm button[type="submit"] {
  background: linear-gradient(135deg, #45939a 0%, #2f747a 100%);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(69, 147, 154, 0.3);
  box-sizing: border-box;
}

form#loginForm button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(69, 147, 154, 0.4);
}

form#loginForm button[type="submit"]:active {
  transform: translateY(0);
}

form#loginForm button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#message {
  font-size: 0.85rem;
  color: #ef4444;
  margin-top: 1rem;
  font-weight: 500;
  min-height: 1.25rem;
}

#message:empty {
  display: none;
}

@media (max-width: 480px) {
  .login-container {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  h1 {
    font-size: 1.5rem;
  }
}
