/* ===== Redesigned Login Page ===== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 3rem 1rem;
  background: #111827;
}

.login-box {
  background: #111827;
  width: 100%;
  max-width: 420px;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  color: #e2e8f0;
  animation: fadeIn 0.9s ease-out;
  position: relative;
  overflow: hidden;
}

/* Gradient Accent Overlay */
.login-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #06b6d4, #9333ea);
  opacity: 0.05;
  pointer-events: none;
  border-radius: 16px;
}

/* Heading */
.login-box h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #06b6d4, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.paragraph1 {
  font-size: 1rem;
  color: #a1a1aa;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Form Fields */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #334155;
  background-color: #1f2937;
  color: #e2e8f0;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6,182,212,0.2);
}

/* Options & Links */
.form-options {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-options a,
.link {
  color: #06b6d4;
  text-decoration: none;
  font-weight: 500;
}

.form-options a:hover,
.link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn-login {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #06b6d4, #9333ea);
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(147,51,234,0.4);
}

/* Switch Auth */
.switch-auth {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.switch-auth .link {
  color: #06b6d4;
}

.switch-auth .link:hover {
  text-decoration: underline;
}

/* Form Messages */
#formMessage {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  display: none;
}

#formMessage.error {
  background: #b91c1c;
  color: #fff;
}

#formMessage.success {
  background: #059669;
  color: #fff;
}

/* Toast Notifications */
.toast {
  background-color: #1f2937;
  color: #fff;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  font-size: 0.95rem;
  animation: slideIn 0.4s ease-out;
  transition: opacity 0.4s ease;
}

.toast.success {
  background-color: #059669;
}

.toast.error {
  background-color: #b91c1c;
}

.toast.fade-out {
  opacity: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
  
  /* Breakpoints */
  
  /* Extra Large Desktops */
@media (min-width: 1280px) {
  /* Optional for very large displays */
}

/* Desktop & Large Tablets */
@media (min-width: 1024px) and (max-width: 1279px) {
  .login-box {
    padding: 2.5rem 2rem;
  }
  h2 {
    font-size: 1.85rem;
  }
  .login-container {
    min-height: 60vh;
    padding: 2rem;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .login-box {
    padding: 2.25rem 1.75rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  .login-container {
    min-height: 65vh;
    padding: 2rem;
  }
}

/* Large Phones (phablets) */
@media (min-width: 576px) and (max-width: 767px) {
  .login-box {
    padding: 2rem 1.5rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  p {
    font-size: 0.95rem;
  }
  .login-container {
    min-height: 75vh;
    padding: 2rem;
  }
}

/* Standard Mobile Phones */
@media (max-width: 575px) {
  .login-box {
    padding: 1.75rem 1.25rem;
  }
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .btn-login {
    font-size: 1rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .login-container {
    min-height: 75vh;
    padding: 2rem;
  }
}

/* Small Phones */
@media (max-width: 375px) {
  .login-box {
    padding: 1.25rem;
  }
  h2 {
    font-size: 1.4rem;
  }
  .form-group label {
    font-size: 0.85rem;
  }
  .form-group input {
    font-size: 0.95rem;
    padding: 0.7rem 0.9rem;
  }
  .btn-login {
    padding: 0.75rem;
  }
  .login-container {
    min-height: 75vh;
    padding: 2rem;
  }
}