:root {
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #9aa4b2;
  --accent: #7c3aed;
  --text: #e6eef6;
  --glass: rgba(255, 255, 255, 0.03);
}

* {
  /* box-sizing: border-box; */
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto,
    "Helvetica Neue", Arial;
}

body {
  background: linear-gradient(145deg, #071027, #081025);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.container {
  background: var(--glass);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

h1 {
  margin-bottom: 1rem;
  /* color: var(--accent); */
  color: #e6eef6;
  font-weight: 600;
}

p {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* New CSS for password suggestion and ui override */
input[type="password"] {
  -webkit-text-security: disc !important;
  appearance: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-text-fill-color: #e6eef6 !important;
  -webkit-box-shadow: 0 0 0px 1000px var(--card) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Add subtle consistent hover */
input:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

input[type="email"],
input[type="password"],
#password,
button {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
  box-sizing: border-box;
}

input:focus {
  border: 1px solid var(--accent);
}

button {
  box-sizing: border-box;
  width: 100%;
  padding: 0.9rem;
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #6d28d9;
  transform: translateY(-1px);
}

.message {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Loader overlay */
#ai-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  color: #e6eef6;
  font-family: Inter, sans-serif;
}

.ai-loader-content {
  text-align: center;
  animation: fadeIn 0.6s ease forwards;
}

.ai-loader-content p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  letter-spacing: 0.5px;
}
/* Show password CSS below */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 2.8rem; /* leave space for the eye icon */
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  color: var(--muted);
  transition: color 0.2s;
  font-size: 1.1rem;
}

.toggle-password:hover {
  color: var(--accent);
}
/* Show password CSS above */

.forgot-link {
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.forgot-password-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-password-link:hover {
  color: var(--accent);
}
