/* =============== signin.css =============== */

/* Assumes listserv.css is linked first */

body.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--bg-secondary); /* Use secondary background for contrast */
    padding: 2rem 1rem; /* Add some padding around */
  }
  
  .auth-container {
    width: 100%;
    max-width: 380px; /* Constrain width of the auth box */
  }
  
  .auth-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
  }
  
  .auth-logo svg {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
  }
  
  .auth-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem; /* Generous padding */
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
  }
  
  .auth-card h1 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
  }
  
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-group:last-of-type {
      margin-bottom: 1.5rem; /* More space before the button */
  }
  
  .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
  }
  
  /* Style for label containing the forgot password link */
  .label-with-link {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
  }
  
  .form-group input[type="email"],
  .form-group input[type="password"],
  .form-group input[type="text"] {
    width: 100%;
    padding: 0.65rem 0.75rem; /* Slightly taller inputs */
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary); /* Match card background */
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: var(--transition);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.075); /* Subtle inner shadow */
  }
  
  [data-theme="dark"] .form-group input[type="email"],
  [data-theme="dark"] .form-group input[type="password"],
  [data-theme="dark"] .form-group input[type="text"] {
      background-color: var(--bg-secondary); /* Darker input background on dark theme */
      box-shadow: none;
  }
  
  
  .form-group input[type="email"]:focus,
  .form-group input[type="password"]:focus,
  .form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3); /* Match header search focus */
  }
  
  [data-theme="dark"] .form-group input[type="email"]:focus,
  [data-theme="dark"] .form-group input[type="password"]:focus,
  [data-theme="dark"] .form-group input[type="text"]:focus {
       box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.3); /* Adjusted focus glow for dark */
  }
  
  
  .forgot-password-link {
      font-size: 0.75rem;
      color: var(--accent-color);
      text-decoration: none;
  }
  
  .forgot-password-link:hover {
      text-decoration: underline;
  }
  
  .btn-full {
    width: 100%;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.9rem;
  }
  
  .auth-secondary-action {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: 0.875rem;
    background-color: var(--bg-primary);
  }
  
  .auth-secondary-action a {
    font-weight: 500;
    color: var(--accent-color);
  }
  
  .auth-error-message {
      background-color: rgba(var(--danger-color-rgb, 207, 34, 46), 0.1); /* Use RGB or fallback */
      color: var(--danger-color);
      border: 1px solid rgba(var(--danger-color-rgb, 207, 34, 46), 0.4);
      padding: 0.75rem 1rem;
      border-radius: var(--border-radius);
      font-size: 0.875rem;
      margin-bottom: 1.5rem;
      text-align: center;
  }
  /* Helper for RGB vars if not defined */
  :root {
      --danger-color-rgb: 207, 34, 46;
  }
  [data-theme="dark"] {
      --danger-color-rgb: 248, 81, 73;
  }