body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1950&q=80') no-repeat center center fixed;
  background-size: cover;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
}

header {
  padding: 16px 5%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h2 {
  margin: 0;
  font-size: 1.75rem;
}

.nav-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.nav-btns a,
.nav-btns button {
  text-decoration: none;
  color: #fff;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-btns a:hover,
.nav-btns button:hover {
  color: #ffcc70;
}

@media (max-width: 600px) {
  .nav-btns {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
    margin-top: 10px;
  }

  .nav-btns a,
  .nav-btns button {
    font-size: 1rem;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
  }

  .nav-btns a:hover,
  .nav-btns button:hover {
    color: #222;
    background-color: #ffcc70;
  }
}

@media (max-width: 360px) {
  .nav-btns a,
  .nav-btns button {
    font-size: 0.95rem;
    padding: 8px 0;
  }
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 140px);
  padding: 40px 5%;
  text-align: center;
  flex-direction: column;
}

.account-switcher {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: flex;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  margin: 20px auto;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.switch-option {
  flex: 1;
  padding: 14px 0;
  font-weight: bold;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
  text-align: center;
}

.switch-option.active {
  color: #222;
}

.switch-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #ffcc70;
  border-radius: 10px;
  z-index: 1;
  transition: transform 0.3s ease;
}

.form {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px 5%;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  max-width: 420px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.form input {
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
}

.form input::placeholder {
  color: #ddd;
}

.btn {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ffcc70;
  color: #222;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover {
  background: #ffb347;
}

.account-prompt {
  text-align: center;
  margin-top: 10px;
  font-size: 0.9rem;
}

.account-prompt a {
  color: #007BFF;
  text-decoration: none;
}

.account-prompt a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 20px 5%;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 14px;
  color: #fff;
}

@media (max-width: 400px) {
  .form {
    padding: 24px 4%;
  }

  .form input {
    font-size: 13px;
    padding: 10px 14px;
  }

  .btn {
    font-size: 14px;
    padding: 10px;
  }

  .switch-option {
    font-size: 0.9rem;
    padding: 10px 0;
  }

  .account-prompt {
    font-size: 0.85rem;
  }
}

@media (max-width: 500px) {
  .form input {
    font-size: 13px;
    padding: 10px 12px;
  }

  .form {
    padding: 20px 4%;
    border-radius: 16px;
  }

  .btn {
    padding: 10px;
    font-size: 15px;
  }
}

/* Added to ensure no horizontal overflow on very small screens */
.account-switcher,
.form {
  box-sizing: border-box;
  max-width: 100vw;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
}
