body {
  background: #f5f7fa;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Login Card */
/* Login Card */
.login-card {
  max-width: 400px;
  width: 100%;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow:
    0 8px 32px 0 rgba(107, 72, 255, 0.13),
    0 2px 8px 0 rgba(0, 0, 0, 0.13),
    0 1.5rem 3rem rgba(0, 0, 0, 0.13);
  padding: 0.8rem 1rem 0.7rem 1rem;
  margin: 10vh auto 0 auto;
  /* 10% from top, centered horizontally */
  position: relative;
  overflow: hidden;
  border: 1.5px solid #e0e0e0;
  transition: transform 0.3s, box-shadow 0.3s;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.15);
}

.login-image {
  display: block;
  margin: 0 auto 1.2rem auto;
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 0.5rem rgba(107, 72, 255, 0.5));
}

/* Input Group */
.input-group {
  display: flex;
  align-items: stretch;
  border-bottom: 1.5px solid #e0e0e0;
  border-radius: 0;
  margin-bottom: 1.2rem;
  background: #fff;
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.7rem;
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  font-size: 0.95rem;
  color: #070808;
  font-weight: bold;
  user-select: none;
}

.input-icon .nepal-flag-img {
  width: 20px;
  height: 16px;
  margin-right: 0.3rem;
  border-radius: 2px;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}

.plus-code {
  font-size: 1rem;
  font-weight: 500;
  margin-left: 0;
  vertical-align: middle;
  display: inline-block;
}

.form-control {
  border: none;
  border-radius: 0;
  padding: 0.8rem 0.6rem;
  background: transparent;
  font-size: 1rem;
  box-shadow: none !important;
  transition: border-color 0.2s;
  flex: 1 1 auto;
}

.form-control.is-valid {
  border-bottom: 2px solid #00b894 !important;
  box-shadow: none !important;
}

.form-control.is-invalid {
  border-bottom: 2px solid #c52311 !important;
  box-shadow: none !important;
}

.toggle-password {
  cursor: pointer;
  width: 2.7rem;
  background: #f8f9fa;
  border-left: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b48ff;
  font-size: 1.2rem;
  border: none;
  transition: color 0.2s, background 0.2s;
}

.input-group:focus-within .input-icon,
.input-group:focus-within .toggle-password {
  color: #6b48ff;
  background: #f0eaff;
}

/* Button */
.btn-primary {
  background: linear-gradient(90deg, #6b48ff, #00ddeb);
  border: none;
  border-radius: 50px;
  padding: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 8px 0 rgba(107, 72, 255, 0.10);
  transition: background 0.2s, transform 0.2s;
  width: 100%;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #00ddeb, #6b48ff);
  transform: scale(1.03);
}

.btn-primary:disabled {
  background: linear-gradient(90deg, #6b48ff, #00ddeb);
  color: #aaa !important;
  border: none;
}

/* Footer Text */
.login-footer-text {
  font-size: 0.95rem;
  text-align: center;
  margin-top: 1.2rem;
  color: #495057;
}

.login-footer-text a {
  color: #6b48ff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.login-footer-text a:hover {
  color: #00ddeb;
  text-decoration: underline;
}

.forgot-password {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1rem;
  color: #495057;
}

.forgot-password a {
  color: #6b48ff;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-password a:hover {
  color: #00ddeb;
  text-decoration: underline;
}

/* Toast */
#toastContainer {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 1055;
}

.toast {
  border-radius: 0.75rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* Loader */
.loader {
  width: 28px;
  height: 28px;
  border: 5px dotted #FFF;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 2s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Error Message */
.form-error {
  color: #e74c3c;
  font-size: 0.97em;
  margin-top: -10px;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 576px) {
  .login-card {
    padding: 1.2rem;
    margin: 1rem;
  }

  .login-image {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 576px) {
  .login-card {
    margin-top: 100px !important;
    max-width: 380px;

  }
}

@media (min-width: 576px) {
  .modal-500 {
    max-width: 500px;
    width: 100%;
  }
}