
  * {
    box-sizing: border-box;
  }
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 0;
  }

  .container {
    background: #fff;
    width: 380px;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  }

  h2 {
    text-align: center;
    margin-bottom: 24px;
    color: #333;
  }

  /* Tabs */
  .tab-switch {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
  }

  .tab-switch button {
    background: none;
    border: none;
    font-size: 18px;
    padding: 10px 0;
    cursor: pointer;
    color: #888;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
  }
  .tab-switch button.active {
    color: #1a73e8;
    border-color: #1a73e8;
    font-weight: 600;
  }

  form {
    display: none;
    flex-direction: column;
  }
  form.active {
    display: flex;
  }

  label {
    margin-bottom: 6px;
    color: #555;
    font-weight: 600;
  }

  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"] {
    padding: 10px 12px;
    margin-bottom: 18px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    width: 100%;
  }
  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="password"]:focus,
  input[type="number"]:focus,
  input[type="tel"]:focus {
    outline: none;
    border-color: #1a73e8;
  }

  .submit-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 700;
    margin-top: -10px;
  }
  button.submit-btn:hover {
    background: #155ab6;
  }

  /* Forgot Password Link */
  .forgot-link {
    text-align: right;
    margin-top: -1px;
    padding: 10px;
    margin-bottom: 20px;
  }
  .forgot-link a {
    font-size: 14px;
    color: #1a73e8;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
  }
  .forgot-link a:hover {
    text-decoration: underline;
  }

  /* OTP Popup */
  .popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  .popup-overlay.active {
    display: flex;
  }
  .popup-content {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }
  .popup-content h3 {
    margin-bottom: 20px;
    color: #333;
  }
  .popup-content input[type="email"],
  .popup-content input[type="number"],
  .popup-content input[type="password"] {
    width: 100%;
    font-size: 18px;
    padding: 12px;
    border-radius: 8px;
    border: 1.5px solid #ddd;
    margin-bottom: 20px;
    text-align: center;
  }
  .popup-content input[type="password"] {
    text-align: left;
  }
  .popup-content button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 0;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
  }
  .popup-content button:hover {
    background: #155ab6;
  }
  .error-msg {
    color: #d93025;
    font-size: 14px;
    margin-top: -14px;
    margin-bottom: 14px;
    font-weight: 600;
    text-align: center;
  }

  /* Password input with toggle */
  .password-container {
    position: relative;
    margin-bottom: 18px;
  }
  .password-container input {
    padding-right: 40px; /* room for eye icon */
  }
  .toggle-password {
    position: absolute;
    top: 40%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #888;
    user-select: none;
    pointer-events: auto;
    z-index: 10;
  }

  /* Add "Don't have an account? Register" text in login */
  .switch-to-register {
    text-align: center;
    font-size: 14px;
    margin-top: 12px;
    color: #555;
  }
  .switch-to-register a {
    color: #1a73e8;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
  }
  .switch-to-register a:hover {
    text-decoration: underline;
  }
  
  @media (max-width: 768px) {
  .container {
    padding:10px 30px;
  }

}
