body {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}
  form {
      background-color: rgba(255, 255, 255, 0.1);
      padding: 20px;
      border-radius: 8px;
  }

  input[type="text"], input[type="password"] {
      width: calc(100% - 22px);
      padding: 10px;
      margin-bottom: 10px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 4px;
      background-color: rgba(255, 255, 255, 0.1);
      color: #e0e0e0;
  }

  [data-theme="light"] form {
      background-color: #f0f0f0;
  }

  [data-theme="light"] input[type="text"],
  [data-theme="light"] input[type="password"] {
      background-color: #ffffff;
      border-color: #d0d0d0;
      color: #333;
  }

  input[type="submit"] {
      width: 100%;
      padding: 10px;
      background-color: #3498db;
      color: #fff;
      border: none;
      border-radius: 4px;
      cursor: pointer;
  }

input[type="submit"]:hover {
    background-color: #2980b9;
}

.create-account, .forgot-password {
    margin-top: 20px;
}

.error-message {
    background-color: rgba(248, 215, 218, 0.1);
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Theme-specific styles */
body[data-theme="light"] form {
    background-color: #f0f0f0;
}

body[data-theme="light"] input[type="text"],
body[data-theme="light"] input[type="password"] {
    background-color: #ffffff;
    border-color: #d0d0d0;
}

body[data-theme="light"] .error-message {
    background-color: #f8d7da;
}
.forgot-password a {
    color: #3498db;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.logo {
    max-width: 200px;
    margin: 0 auto 20px;
    display: block;
}


.theme-switch-wrapper {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.theme-switch {
    display: inline-block;
    height: 60px;
    position: relative;
    width: 30px;
}

.theme-switch input {
    display: none;
}

.switch {
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 4px;
}

.switch-handle {
    bottom: 4px;
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 22px;
    border-radius: 3px;
}

input:checked + .switch .switch-handle {
    transform: translateY(-26px);
}

.switch:before, .switch:after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    border-radius: 2px;
}

.switch:before {
    top: 5px;
}

.switch:after {
    bottom: 5px;
}

[data-theme="dark"] h1 { color: #3498db; }
[data-theme="light"] h1 { color: #2c3e50; }
