* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1d2671, #c33764);
  display: flex;
  align-items: center;
  justify-content: center;
}


.login-container {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 40px 35px;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: fadeIn 0.6s ease;
}


.login-container h2 {
  text-align: center;
  margin-bottom: 28px;
  font-size: 26px;
  font-weight: 700;
  color: #1d2671;
  position: relative;
  animation: slideDown 0.7s ease forwards;
}


.login-container h2::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin: 10px auto 0;
  background: linear-gradient(135deg, #1d2671, #c33764);
  border-radius: 5px;
  animation: underlineGrow 0.8s ease forwards;
  animation-delay: 0.4s;
}


.hint {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #777;
  letter-spacing: 0.4px;
  animation: fadeUp 0.9s ease forwards;
}


@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underlineGrow {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.error {
  background: #ffe6e6;
  color: #c0392b;
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 14px;
  text-align: center;
}


.login-container form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}


.login-container input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  font-size: 15px;
  transition: all 0.25s ease;
  background: #f9f9f9;
}

.login-container input:focus {
  outline: none;
  border-color: #1d2671;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 38, 113, 0.12);
}


.login-container button {
  margin-top: 5px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #1d2671, #c33764);
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(195, 55, 100, 0.4);
}

.login-container button:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(195, 55, 100, 0.35);
}


@media (max-width: 480px) {
  .login-container {
    padding: 30px 22px;
    border-radius: 14px;
  }

  .login-container h2 {
    font-size: 22px;
  }
}
