 /* Base Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 100svh;
    padding: 3rem;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    margin-top: 0;
  }
  
  .login-box {
    background: #fff;
    height: 100%;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 420px;
    animation: fadeIn 0.9s ease-out;
    margin-top: 0;
    padding-top: 0;
  }
  
  h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  
  p {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-group label {
    display: block;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.5rem;
  }
  
  .form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
  }
  
  .form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
  }
  
  .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .form-options {
    color: #007bff;
    text-decoration: none;
  }
  
  .form-options:hover {
    text-decoration: underline;
  }

  .link {
    color: #007bff;
    text-decoration: none;
    border: none;
    margin: 2rem;
    margin-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
    background: none;
    cursor: pointer;
  }

  .link:hover {
    text-decoration: underline;
  }
  
  .btn-login {
    width: 100%;
    padding: 0.85rem;
    background-color: #007bff;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .btn-login:hover {
    background-color: #0056b3;
  }
  
  .switch-auth {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
  }
  
  .switch-auth .link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
  }
  
  .switch-auth .link:hover {
    text-decoration: underline;
  }
  
  #formMessage {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: none;
  }
  
  #formMessage.error {
    background: #ffe0e0;
    color: #b30000;
    border: 1px solid #ff9999;
  }
  
  #formMessage.success {
    background: #e0ffe5;
    color: #006600;
    border: 1px solid #80ff9f;
  }

  .toast {
    background-color: #333;
    color: #fff;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-size: 0.95rem;
    animation: slideIn 0.4s ease-out;
    transition: opacity 0.4s ease;
  }
  
  .toast.success {
    background-color: #28a745;
  }
  
  .toast.error {
    background-color: #dc3545;
  }
  
  .toast.fade-out {
    opacity: 0;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Animation */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    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;
  }
}