/* Keys Web - Styles */
/* Extracted from /var/www/mcp/keys/style.css */

body {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background: #f5f5f5;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-top: 0;
    color: #333;
}

/* Info Section */
.info {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info>div:first-child {
    flex: 1;
}

/* Form Elements */
.form-group {
    margin: 20px 0;
    position: relative;
}

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

input {
    width: 100%;
    padding: 10px;
    padding-right: 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.toggle-visibility {
    position: absolute;
    right: 10px;
    top: 35px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    font-size: 18px;
    width: auto;
    flex: none;
}

.toggle-visibility:hover {
    background: none;
    color: #333;
}

/* Buttons */
button {
    background: #1976d2;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    flex: 1;
}

button:hover {
    background: #1565c0;
}

button.danger {
    background: #d32f2f;
}

button.danger:hover {
    background: #c62828;
}

button.secondary {
    background: transparent;
    color: #d32f2f;
    font-size: 14px;
    padding: 0;
    width: auto;
    text-decoration: underline;
    font-weight: normal;
    flex-shrink: 0;
}

button.secondary:hover {
    background: transparent;
    color: #c62828;
}

.button-row {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

/* Messages */
.message {
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    display: none;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* Landing Page Specific */
.card.landing {
    padding: 40px;
    text-align: center;
}

.card.landing h1 {
    font-size: 28px;
}

.icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.description {
    color: #666;
    margin: 20px 0 30px;
    line-height: 1.6;
}

.footer {
    margin-top: 30px;
    font-size: 12px;
    color: #999;
}

.card.landing button {
    padding: 14px 32px;
    transition: background 0.2s;
}