:root {
  --purple: #7c3aed;
  --azure: #0ea5e9;
  --dark: #020617;
  --light: #f1f5f9;
}

* {
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #2b2f77, #0b0d2a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  z-index: 10000;
}

.logo {
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--purple);
}

.menu-btn {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu {
  position: fixed;
  top: 70px;
  right: 20px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  min-width: 200px;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

.menu.hidden {
  display: none;
}

.menu a {
  padding: 1rem;
  font-weight: 600;
  color: var(--purple);
}

.menu a:hover {
  background: #eef2ff;
}

.hidden {
  display: none;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.auth-card {
  background: #11142c;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  text-align: center;
}

h1 {
  margin: 0;
}

.subtitle {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 20px;
}

.tab-buttons {
  display: flex;
  margin-bottom: 20px;
}

.tab-buttons button {
  flex: 1;
  padding: 10px;
  border: none;
  cursor: pointer;
  background: #1b1f44;
  color: #ccc;
  font-weight: bold;
}

.tab-buttons button.active {
  background: #4f5bff;
  color: #fff;
}

.form {
  display: none;
}

.form.active {
  display: block;
}

input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: #1b1f44;
  color: #fff;
}

input::placeholder {
  color: #888;
}

.password-field {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 12px;
  cursor: pointer;
}

button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #4f5bff;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #3c46cc;
}

.divider {
  text-align: center;
  margin: 1rem 0;
  opacity: 0.6;
}

.strength {
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

#strengthBar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.3s;
}


#message {
  margin-top: 15px;
  font-size: 0.9rem;
}





