/* Reset some default styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe); /* soft blue gradient */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  background: white;
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 400px;
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #1e3a8a;
  font-size: 24px;
}

input {
  display: block;
  margin: 15px 0;
  padding: 12px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  transition: 0.3s ease;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

button {
  background-color: #2563eb;
  color: white;
  padding: 12px;
  border: none;
  width: 100%;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  margin-top: 10px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #1d4ed8;
}

.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.form-footer a {
  color: #2563eb;
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

select {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 15px 0;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background-color: white;
  color: #111827;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 140 140' width='14' height='14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 50 L70 110 L130 50' stroke='%233b82f6' stroke-width='15' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px; /* Smaller icon size */
  cursor: pointer;
  transition: 0.3s ease;
}

select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* space for the eye icon */
  height: 40px;
  border-radius: 6px;
  border: 1px solid #ccc;
  padding-left: 10px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #444;
  font-size: 16px;
}

/* Responsive styles */
@media (max-width: 480px) {
  .container {
    padding: 25px 20px;
    margin: 0 15px;
  }
  h2 {
    font-size: 20px;
  }

  input, select, button {
    font-size: 14px;
    padding: 10px;
  }
  .form-footer {
    font-size: 12px;
  }
}

/* toaster */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 320px;
  max-width: 90vw;
  padding: 14px 20px;
  background-color: white;
  color: #333;
  /* border-radius: 8px; */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  animation: fadeSlide 0.4s ease-out;
  border-left: 6px solid transparent;
  border-bottom: 4px solid transparent;
}

.toast i {
  margin-right: 10px;
  font-size: 18px;
}

.toast .toast-message {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.toast .toast-close {
  background: transparent;
  border: none;
  font-size: 16px;
  color: #888;
  cursor: pointer;
  margin-left: 15px;
}

.toast.success {
  border: 1px solid #22c55e;
  border-bottom: 5px solid #22c55e;
}

.toast.error {
  border: 1px solid #ef4444;
  border-bottom:5px solid #ef4444;
}

.toast.warning {
  border: 1px solid #facc15;
  border-bottom: 5px solid #facc15;
}

.toast.info {
  border: 1px solid #3b82f6;
  border-bottom: 5px solid #3b82f6;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


