:root {
  --bg-color: #0a0a0c;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #a0a0ab;
  --accent-red: #ff4d4d;
  --accent-orange: #ff9f43;Project: “Smart Password Strength Checker” (30–60 mins)
What it does

A simple web page that tells the user how strong their password is in real time.

Features (keep it minimal)

Input box: “Enter password”

Below it, show one of:

❌ Weak

⚠️ Medium

✅ Strong

Strength rules (simple but legit)

Weak → less than 8 characters

Medium → at least 8 characters but missing either:

a number, or

a special character

Strong → at least 8 characters + contains:

one number

one special character

Tech (your stack)

HTML

CSS (basic)

JavaScript (no frameworks needed)Project: “Smart Password Strength Checker” (30–60 mins)
What it does

A simple web page that tells the user how strong their password is in real time.

Features (keep it minimal)

Input box: “Enter password”

Below it, show one of:

❌ Weak

⚠️ Medium

✅ Strong

Strength rules (simple but legit)

Weak → less than 8 characters

Medium → at least 8 characters but missing either:

a number, or

a special character

Strong → at least 8 characters + contains:

one number

one special character

Tech (your stack)

HTML

CSS (basic)

JavaScript (no frameworks needed)Project: “Smart Password Strength Checker” (30–60 mins)
What it does

A simple web page that tells the user how strong their password is in real time.

Features (keep it minimal)

Input box: “Enter password”

Below it, show one of:

❌ Weak

⚠️ Medium

✅ Strong

Strength rules (simple but legit)

Weak → less than 8 characters

Medium → at least 8 characters but missing either:

a number, or

a special character

Strong → at least 8 characters + contains:

one number

one special character

Tech (your stack)

HTML

CSS (basic)

JavaScript (no frameworks needed)
  --accent-green: #2ecc71;
  --accent-dim: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Blobs for depth */
.background-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: blur(80px);
}

.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0.2;
  transition:
    background-color 0.5s ease,
    transform 0.8s ease;
}

.blob-1 {
  top: -50px;
  left: -50px;
  background-color: var(--accent-red);
}

.blob-2 {
  bottom: -50px;
  right: -50px;
  background-color: var(--accent-orange);
}

.container {
  padding: 20px;
  width: 100%;
  max-width: 450px;
}

/* Glassmorphic Card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition:
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

header h1 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, #a0a0ab);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* Input Styles */
.input-group {
  position: relative;
  margin-bottom: 24px;
}

#password-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 48px 16px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

#password-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

#toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

#toggle-password:hover {
  color: #fff;
}

/* Strength Indicator */
.strength-container {
  margin-bottom: 24px;
}

.strength-bar-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

#strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 3px;
  transition:
    width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    background-color 0.4s ease;
}

.strength-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

/* Rules/Hints */
.hints {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hints p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
}

.hints p::before {
  content: "•";
  font-size: 1.2rem;
}

.hints p.valid {
  color: var(--accent-green);
}

.hints p.valid::before {
  content: "✓";
  font-size: 1rem;
}

/* Dynamic State Classes (applied via JS) */
.state-weak {
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.15);
  border-color: rgba(255, 77, 77, 0.3);
}

.state-medium {
  box-shadow: 0 0 20px rgba(255, 159, 67, 0.15);
  border-color: rgba(255, 159, 67, 0.3);
}

.state-strong {
  box-shadow: 0 0 20px rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.3);
}
