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

body {
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #e0e0e0;
}

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

.card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

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

.shield-icon { font-size: 3rem; margin-bottom: 10px; animation: pulse 2s infinite; }

@keyframes pulse { 50% { transform: scale(1.1); } }

h1 {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.password-wrapper {
    position: relative;
    margin-bottom: 15px;
}

#password {
    width: 100%;
    padding: 15px 50px 15px 20px;
    background: rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
}

#password:focus { outline: none; border-color: #667eea; }

#toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
}

.strength-meter { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }

.meter-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

#strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.3s;
}

#strength-text { font-size: 0.9rem; font-weight: 600; min-width: 100px; text-align: right; }

.checks { margin-bottom: 25px; }

.check {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.check::before {
    content: "○";
    color: #666;
    font-size: 1.2rem;
}

.check.valid { color: #2ed573; }

.check.valid::before { content: "✓"; color: #2ed573; }

.btn-gen {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-gen:hover { transform: translateY(-2px); }

#generated {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    font-family: monospace;
    color: #2ed573;
    word-break: break-all;
    display: none;
}

#generated.show { display: block; }

.weak { background: #ff4757; }
.fair { background: #ffa502; }
.good { background: #2ed573; }
.strong { background: #1e90ff; }