/* Base layout */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #EEF3F8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.title {
  color: #1B2430;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 30px;
}

/* Login Card */
.login-card {
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  width: 320px;
}

.login-card h2 {
  margin-bottom: 20px;
  color: #1B2430;
  font-weight: 600;
}

label {
  display: block;
  text-align: left;
  font-size: 14px;
  color: #1B2430;
  margin: 8px 0 5px;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #CED8E1;
  background-color: #F8FAFC;
  font-size: 14px;
  outline: none;
}

input:focus {
  border-color: #0078D7;
  box-shadow: 0 0 0 2px rgba(0,120,215,0.2);
}

button {
  background-color: #0078D7;
  color: #FFFFFF;
  border: none;
  padding: 10px 20px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #005fae;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(27, 36, 48, 0.3);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #FFFFFF;
  padding: 30px 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modal-content p {
  font-weight: 600;
  color: #1B2430;
  margin-bottom: 15px;
}

.modal-content img {
  width: 50px;
  height: 50px;
}

/* Invalid popup */
.invalid-popup {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #E74C3C;
  color: #FFFFFF;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
  z-index: 20;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.loading-gif {
  max-width: 80px;
  width: 20vw;   /* scales with viewport */
  height: auto;
  margin-bottom: 10px;
}
