 /* Reset and basics */
    * {
      box-sizing: border-box;
    }
    body {
      font-family: 'Poppins', sans-serif;
      margin: 0;
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      background: linear-gradient(135deg, #2c3e50, #121212);
      color: #f8f9fa;
      transition: background-color 0.4s ease, color 0.4s ease;
      padding: 20px;
    }
    .light-theme body {
      background: linear-gradient(135deg, #f0f2f5, #d6d8db);
      color: #343a40;
    }

    /* Container */
    .form-container {
      background: rgba(255,255,255,0.1);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-radius: 20px;
      padding: 50px 40px;
      width: 500px;  /* Slightly smaller width for login */
      box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.37),
        0 0 0 1px rgba(255, 255, 255, 0.18);
      border: 1px solid rgba(255, 255, 255, 0.18);
      transition: background-color 0.4s ease, color 0.4s ease;
      color: inherit;
      position: relative;
    }
    .light-theme .form-container {
      background: rgba(255,255,255,0.7);
      box-shadow:
        0 8px 32px 0 rgba(0,0,0,0.1);
      border: 1px solid rgba(0,0,0,0.1);
      color: #343a40;
    }

    /* Heading */
    h2 {
      margin-bottom: 30px;
      font-weight: 700;
      font-size: 2rem;
      text-align: center;
    }

    /* Form styles */
    form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    label {
      margin-bottom: 8px;
      font-weight: 600;
    }

    /* Input styles apply to both password and text so toggle won't break */
    input[type="email"],
    input[type="password"],
    input[type="text"] {
      padding: 12px 15px;
      border-radius: 10px;
      border: 1px solid #555;
      background-color: rgba(44, 47, 51, 0.8);
      color: #f8f9fa;
      font-size: 1rem;
      width: 100%;
      transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    }
    .light-theme input[type="email"],
    .light-theme input[type="password"],
    .light-theme input[type="text"] {
      background-color: #f8f9fa;
      border-color: #ccc;
      color: #343a40;
    }

    input:focus {
      outline: none;
      border-color: #6610f2;
      box-shadow: 0 0 8px #6610f2;
      background-color: transparent;
    }

    /* Password wrapper to position toggle */
    .password-wrapper {
      position: relative;
      width: 100%;
      display: flex;
      align-items: center;
    }
    .password-wrapper input {
      flex-grow: 1;
      padding-right: 50px;
      margin-bottom: 0;
    }
    .toggle-password {
      position: absolute;
      right: 15px;
      background: none;
      border: none;
      color: #aaa;
      font-weight: 700;
      cursor: pointer;
      user-select: none;
      font-size: 0.9rem;
      top: 50%;
      transform: translateY(-50%);
      padding: 0;
    }
    .toggle-password:hover {
      color: #6610f2;
    }

    /* Submit button */
    button.submit-btn {
      margin-top: 10px;
      padding: 14px;
      font-weight: 700;
      font-size: 1.1rem;
      border: none;
      border-radius: 30px;
      background: linear-gradient(90deg, #007bff, #6610f2);
      color: white;
      cursor: pointer;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    button.submit-btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 20px rgba(102, 16, 242, 0.6);
    }

    /* Redirect link */
    .redirect-link {
      margin-top: 15px;
      width: 100%;
      text-align: center;
      font-size: 0.9rem;
    }
    .redirect-link a {
      color: #6610f2;
      font-weight: 600;
      text-decoration: none;
    }
    .redirect-link a:hover {
      text-decoration: underline;
    }

    /* Theme toggle button */
    #theme-toggle {
      position: absolute;
      top: 15px;
      right: 20px;
      background: rgba(255,255,255,0.2);
      border: none;
      border-radius: 30px;
      padding: 8px 16px;
      color: #f8f9fa;
      font-weight: 700;
      cursor: pointer;
      transition: background-color 0.3s ease, color 0.3s ease;
      user-select: none;
      font-size: 0.9rem;
    }
    #theme-toggle:hover {
      background: rgba(255,255,255,0.4);
    }
    .light-theme #theme-toggle {
      background: rgba(0,0,0,0.1);
      color: #343a40;
    }
    .light-theme #theme-toggle:hover {
      background: rgba(0,0,0,0.3);
    }

    /* Responsive */
    @media (max-width: 480px) {
      .form-container {
        width: 100%;
        padding: 40px 25px;
      }
    }