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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 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;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 600px;
    padding: 40px;
}

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

.header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

.input-group {
    display: flex;
    gap: 10px;
}

input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

.result-box {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.result-box.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.result-box.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.password {
    font-size: 48px;
    font-weight: bold;
    color: #155724;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
}

.error-message {
    color: #721c24;
    font-size: 16px;
}

.info-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.examples {
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.examples h3 {
    color: #333;
    margin-bottom: 10px;
}

.example-list {
    list-style: none;
}

.example-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.example-list li:last-child {
    border-bottom: none;
}

.example-call {
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.example-call:hover {
    background-color: #e9ecef;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.algorithm-info {
    margin-top: 20px;
    background: #e8f4ff;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.algorithm-info h4 {
    color: #333;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .password {
        font-size: 36px;
    }
}