* {
  box-sizing: border-box;
}

body.login {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at top left, #7bc6cc, #33bfc0, #2aa0a0);
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem;
  width: 90%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-box input {
  width: 100%;
  padding: .9rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.login-box input:focus {
  outline: none;
  border-color: #2aa0a0;
  box-shadow: 0 0 0 4px rgba(42, 160, 160, 0.1);
  background: white;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #666;
  width: auto !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.login-box button:not(.toggle-password) {
  padding: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2aa0a0, #33bfc0);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(42, 160, 160, 0.2);
}

.login-box button:not(.toggle-password):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(42, 160, 160, 0.3);
  opacity: 1;
}

.login-box button:not(.toggle-password):active {
  transform: translateY(0);
}

.error {
  background: #ffe5e5;
  color: #b00020;
  padding: .5rem;
  border-radius: 6px;
  text-align: center;
}