:root {
  --bg-color: #f2f4f8;
  --card-bg: #ffffff;
  --text-color: #1e1e1e;
  --primary: #4f46e5;
  --secondary: #10b981;
  --danger: #ef4444;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: all 0.3s ease;
}

body.light {
  --bg-color: #1e1e1e;
  --card-bg: #2d2d2d;
  --text-color: #f2f2f2;
  --primary: #818cf8;
  --secondary: #34d399;
  --danger: #f87171;
}

.app-container {
  width: 100%;
  max-width: 450px;
  padding: 1rem;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

input[type="password"] {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.6rem;
  outline: none;
}

#strength {
  height: 10px;
  width: 0;
  transition: width 0.5s ease, background-color 0.5s ease;
  background: #ddd;
  border-radius: 5px;
  margin-bottom: 0.8rem;
}

.btn {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0.6rem;
  margin-top: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn:hover {
  opacity: 0.9;
    transform: translateY(-2px);
}

.lang-theme {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

select {
  padding: 0.4rem;
  border-radius: 6px;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 480px) {
  .card {
    padding: 1.2rem;
  }
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeInUp 0.8s ease forwards;
}

.footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.6;
}
.footer strong {
  color: var(--primary);
}