.login__container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
  background-color: #ffffff;
  padding: 50px;
  position: relative;
}

/* .login__container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
} */

.login__card {
  width: 100%;
  max-width: 420px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 40px;
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2); */
  box-shadow: rgba(255, 255, 255, 0.1) 0px 1px 1px 0px inset,
    rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  position: relative;
  z-index: 1;
}

.login__header {
  text-align: center;
  margin-bottom: 2rem;
}

.login__logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 10px;
}

.login__logo-icon {
  color: #667eea;
}

.login__logo-heading {
  font-size: 32px;
  font-weight: 700;
  font-family: var(--font-primary);
  color: #2d3748;
  margin: 0;
}

.login__subtitle {
  color: #4a5568;
  font-size: 0.95rem;
  margin: 0;
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.error-message {
  background: rgba(254, 226, 226, 0.8);
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.input-group {
  position: relative;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: #9ca3af;
  z-index: 2;
  transition: color 0.2s ease;
}

.form-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 15px;
  transition: all 0.2s ease;
  background: #f7fafc;
  color: #2d3748;
}

.form-input:focus {
  outline: none;
  border: 2px solid #007a5e;
  box-shadow: 0 0 0 3px rgba(0, 122, 94, 0.1);
  background-color: #ffffff;
  transition: border-color var(--transition-super-fast) ease,
    box-shadow var(--transition-super-fast) ease;
}

.form-input::placeholder {
  color: #718096;
}

.form-input:focus + .input-icon,
.form-input:not(:placeholder-shown) + .input-icon {
  color: #667eea;
}

.form-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 2;
}

.password-toggle:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.password-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #4b5563;
}

.remember-me input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
}

.remember-me input[type="checkbox"]:checked {
  background: #667eea;
  border-color: #667eea;
}

.remember-me input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.forgot-password {
  color: #2b6cb0;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #2c5282;
  text-decoration: underline;
}

.forgot-password:focus {
  outline: 2px solid #007a5e;
  outline-offset: 2px;
  border-radius: 2px;
}

.forgot-password:active {
  color: #1a365d;
}

/* .login__button {
  width: 100%;
  padding: 1rem;
  background-color: #005b5b;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.login__button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.login__button:active {
  transform: translateY(0);
}

.login__button:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
} */
.login__btn {
  background-color: #005b5b; /* Deep Teal */
  color: #ffffff;
  font-family: var(--font-primary);
  font-size: 1rem; /* 16px */
  font-weight: 600; /* Semibold */
  padding: 12px 24px;
  height: 48px;
  width: 100%;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login__btn:hover {
  background-color: #004747; /* Darker teal on hover */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.login__btn:active {
  background-color: #003333; /* Even darker on click */
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.login__btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 91, 91, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login__btn:disabled {
  background-color: #a0aec0; /* Light Gray */
  color: #718096; /* Medium Gray */
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login__button.loading {
  pointer-events: none;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.login__footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.login__footer p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.login__footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.login__footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login__card {
    padding: 2rem 1.5rem;
    margin: 1rem;
    border-radius: 16px;
  }

  .login__logo-heading {
    font-size: 1.5rem;
  }

  .form-input {
    padding: 0.875rem 0.875rem 0.875rem 2.75rem;
  }

  .form-options {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 360px) {
  .login__card {
    padding: 1.5rem 1rem;
  }

  .input-icon {
    left: 0.75rem;
  }

  .form-input {
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    font-size: 0.95rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .login__card {
    background: rgba(17, 24, 39, 0.95);
    color: #f9fafb;
  }

  .login__logo-heading {
    color: #f9fafb;
  }

  .login__subtitle {
    color: #d1d5db;
  }

  .form-input {
    background: rgba(31, 41, 55, 0.8);
    border-color: #374151;
    color: #f9fafb;
  }

  .form-input:focus {
    background: rgba(31, 41, 55, 0.9);
  }
}

/* Animation for smooth page transitions */
.login__card {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
