/* styles.css */

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4f8, #d9e2ec);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  .container {
    background-color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
  }
  
  h1, h2 {
    text-align: center;
    color: #333;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s ease-in-out;
  }
  
  input:focus {
    border-color: #6c63ff;
    outline: none;
  }
  
  button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background-color: #6c63ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
  }
  
  button:hover {
    background-color: #574fd6;
  }
  
  #add-child-btn {
    background-color: #4caf50;
  }
  
  #add-child-btn:hover {
    background-color: #3e8e41;
  }
  
  #children-container input {
    margin-bottom: 10px;
  }
  




  #form-toggle-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
  }
  
  #form-toggle-buttons button {
    width: 48%;
    background-color: #ddd;
    color: #333;
  }
  
  #form-toggle-buttons button:hover {
    background-color: #ccc;
  }
  

  #forgot-password-link {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: #6c63ff;
    text-decoration: none;
    cursor: pointer;
  }
  
  #forgot-password-link:hover {
    text-decoration: underline;
  }
  
  .spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 0.8s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Mobile polish for auth pages */
@media (max-width: 480px) {
  .container {
    padding: 16px;
    border-radius: 12px;
    max-width: 100%;
  }
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  button {
    min-height: 44px;
    font-size: 16px;
  }
}
