:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a1f2e;
    --bg-input: #0f1419;
    
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-primary: #3b82f6;
    --accent-primary-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.3);
    
    --strength-weak: #ef4444;
    --strength-fair: #f59e0b;
    --strength-good: #3b82f6;
    --strength-strong: #10b981;
    
    --border-color: #374151;
    --border-focus: #3b82f6;
    
    --success: #10b981;
    --pending: #6b7280;
}

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

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

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

.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 50px -10px rgba(0, 0, 0, 0.5),
        0 0 100px -20px rgba(59, 130, 246, 0.1);
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 28px;
}

.shield-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.shield-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

h1 {
    font-size: 24px;
    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 {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Input Section */
.input-section {
    margin-bottom: 24px;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.lock-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    z-index: 1;
}

.lock-icon svg {
    width: 100%;
    height: 100%;
}

#passwordInput {
    width: 100%;
    padding: 16px 48px 16px 48px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
}

#passwordInput:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.toggle-btn {
    position: absolute;
    right: 12px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.toggle-btn svg {
    width: 20px;
    height: 20px;
}

.toggle-btn .hidden {
    display: none;
}

.generate-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--accent-primary), #6366f1);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.generate-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn svg {
    width: 18px;
    height: 18px;
}

/* Strength Section */
.strength-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.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-text {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg-input);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.strength-text.weak {
    background: rgba(239, 68, 68, 0.15);
    color: var(--strength-weak);
}

.strength-text.fair {
    background: rgba(245, 158, 11, 0.15);
    color: var(--strength-fair);
}

.strength-text.good {
    background: rgba(59, 130, 246, 0.15);
    color: var(--strength-good);
}

.strength-text.strong {
    background: rgba(16, 185, 129, 0.15);
    color: var(--strength-strong);
}

.strength-meter {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, var(--strength-weak), var(--strength-fair), var(--strength-good), var(--strength-strong));
    background-size: 400% 100%;
    background-position: 0% 50%;
}

.strength-bar.weak {
    width: 25%;
    background-position: 0% 50%;
}

.strength-bar.fair {
    width: 50%;
    background-position: 33% 50%;
}

.strength-bar.good {
    width: 75%;
    background-position: 66% 50%;
}

.strength-bar.strong {
    width: 100%;
    background-position: 100% 50%;
}

.crack-time {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
}

.crack-time.strong {
    color: var(--strength-strong);
}

/* Requirements Section */
.requirements-section {
    margin-bottom: 20px;
}

.requirements-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.requirement.met {
    background: rgba(16, 185, 129, 0.08);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--pending);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.check-icon svg {
    width: 100%;
    height: 100%;
}

.check-mark {
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
    transform-origin: center;
}

.requirement.met .check-icon {
    color: var(--success);
}

.requirement.met .check-mark {
    opacity: 1;
    transform: scale(1);
}

.requirement span:last-child {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.requirement.met span:last-child {
    color: var(--text-primary);
}

/* Suggestions Section */
.suggestions-section {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.suggestions-section.hidden {
    display: none;
}

.suggestions-section h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--strength-fair);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestions-section h3::before {
    content: "💡";
}

.suggestions-section ul {
    list-style: none;
    padding: 0;
}

.suggestions-section li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.suggestions-section li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--strength-fair);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.strength-text.weak {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 24px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    .shield-icon {
        width: 56px;
        height: 56px;
    }
    
    .shield-icon svg {
        width: 28px;
        height: 28px;
    }
}
