* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
h1 { color: #333; margin-bottom: 10px; font-size: 28px; }
.subtitle { color: #666; margin-bottom: 30px; font-size: 14px; }
.timer-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}
.timer {
    font-size: 48px;
    font-weight: bold;
    color: #667eea;
    font-variant-numeric: tabular-nums;
}
.timer.warning { color: #ff6b6b; animation: pulse 1s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
.timer-label { color: #666; margin-top: 8px; font-size: 14px; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: #333; font-weight: 500; }
input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
}
input:focus { outline: none; border-color: #667eea; }
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { background: #ccc; cursor: not-allowed; }
.result-box {
    margin-top: 25px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 12px;
    border: 2px solid #667eea;
}
.result-label { color: #667eea; font-weight: 600; margin-bottom: 10px; }
.password-display {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    padding: 12px;
    background: white;
    border-radius: 6px;
    word-break: break-all;
    line-height: 1.6;
}
.password-text {
    flex: 1;
    margin-right: 10px;
}
.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}
.info-box {
    margin-top: 20px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
}
.random-info {
    margin-top: 10px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    word-break: break-all;
}
.hidden { display: none; }
