* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0a0e27;
  --bg-secondary: #0f1429;
  --bg-card: #151b33;
  --bg-card-hover: #1a2140;
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --border-color: #1e293b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 50%,
    #1a1f3a 100%
  );
  z-index: -1;
  overflow: hidden;
}

.background-animation::before,
.background-animation::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 0%,
    transparent 70%
  );
  animation: float 20s ease-in-out infinite;
}

.background-animation::before {
  top: -250px;
  left: -250px;
  animation-delay: 0s;
}

.background-animation::after {
  bottom: -250px;
  right: -250px;
  animation-delay: 10s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(50px, 50px) scale(1.1);
    opacity: 0.5;
  }
}

.container {
  max-width: 600px;
  width: 100%;
  background: rgba(21, 27, 51, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
  }
}

.lock-icon {
  width: 32px;
  height: 32px;
  color: var(--text-primary);
}

h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--text-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 400;
}

.input-wrapper {
  margin-bottom: 32px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 0 16px;
  transition: all 0.3s ease;
}

.input-container:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.input-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  margin-right: 12px;
  flex-shrink: 0;
}

input[type="password"],
input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 0;
  font-size: 16px;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
}

input::placeholder {
  color: var(--text-muted);
}

.toggle-visibility {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease;
  margin-left: 8px;
}

.toggle-visibility:hover {
  color: var(--text-primary);
}

.eye-icon {
  width: 20px;
  height: 20px;
}

.strength-section {
  margin-bottom: 32px;
}

.strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.strength-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.strength-badge {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.strength-badge.very-weak {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-danger);
}

.strength-badge.weak {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-warning);
}

.strength-badge.fair {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.strength-badge.strong {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-success);
}

.strength-badge.very-strong {
  background: rgba(16, 185, 129, 0.3);
  color: var(--accent-success);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.meter-container {
  position: relative;
}

.meter {
  position: relative;
  width: 100%;
  height: 12px;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.meter-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    var(--accent-danger),
    var(--accent-warning),
    var(--accent-success)
  );
  border-radius: 8px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.meter-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.meter-glow {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  filter: blur(8px);
  transition: all 0.4s ease;
  pointer-events: none;
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 2px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}

.stat-card:hover::before {
  transform: scaleX(1);
}

.stat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  padding: 8px;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-content {
  width: 100%;
}

.stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-unit {
  font-size: 11px;
  color: var(--text-muted);
}

.feedback-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  display: none;
}

.feedback-section.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.feedback-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-warning);
}

.feedback-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feedback-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--accent-warning);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feedback-list li::before {
  content: "→";
  color: var(--accent-warning);
  font-weight: bold;
  flex-shrink: 0;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: left;
}

.privacy-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-success);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .container {
    padding: 24px;
    border-radius: 20px;
  }

  h1 {
    font-size: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    flex-direction: row;
    text-align: left;
  }

  .stat-icon {
    margin-bottom: 0;
    margin-right: 16px;
  }
}
