/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;

  /* 🔹 Plain background color */
  background-color: #e3f2fd; /* light blue */
}

/* === Container === */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* === Login box === */
.login-box {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  width: 350px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: slide-up 0.7s ease;
}

/* Logo */
.logo img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
}

h1.portal-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #2E7D32;
}

h2 {
  margin-bottom: 20px;
  color: #333;
}

/* Errors */
.errors {
  background: #ffe5e5;
  color: #d00;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
  animation: shake 0.3s;
}

/* Form elements */
label {
  display: block;
  text-align: left;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #444;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: 0.3s;
}

input:focus {
  border-color: #4facfe;
  box-shadow: 0 0 6px rgba(79,172,254,0.5);
  outline: none;
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #00f2fe, #4facfe);
}

/* Animations */
@keyframes slide-up {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
