/* style.css - Enhanced login form */

body {
  font-family: "Inter var", sans-serif;
  background-color: var(--surface-ground);
  color: var(--surface-500);
}

.header {
  background-color: var(--surface-card);
  color: var(--surface-400);
  padding: 6px 2rem;
  margin-top: -8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--surface-ground);
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.user-controls {
  display: flex;
  align-items: center;
  gap: 40px;
}

.pi {
  cursor: pointer;
  font-size: 1.2rem;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  background-color: var(--surface-50);
  padding: 0px;
  /*0.5rem;*/
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.dropdown-menu a,
.dropdown-menu button {
  display: block;
  text-align: left;
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: background 0.2s;
}

.dropdown-menu button {
  width: 100%;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: var(--surface-100);
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-ground);
}

.login-form {
  background: var(--surface-50);
  padding: 2rem;
  border-radius: var(--border-radius);
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.login-form h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-color);
  font-weight: 500;
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--border-radius);
  background: var(--surface-card);
  color: var(--text-color);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;

  box-sizing: border-box;
  /* ✅ Important fix! */
}

.form-group input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.3);
}

.btn-primary {
  width: 100%;
  padding: 0.7rem;
  background: var(--primary-color);
  color: var(--primary-color-text);
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--primary-600);
}

.error-message {
  color: #fca5a5;
  margin-bottom: 1rem;
  text-align: center;
}