body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 0.5rem;
}

button {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0056b3;
}

.info {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.info ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

/* Modal */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.5); 
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 500px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#message {
    margin-top: 1rem;
    text-align: center;
    font-weight: bold;
}
.error { color: red; }
.success { color: green; }
.warning { color: #d39e00; } /* Darker yellow/orange for visibility against white */

.hint {
    font-size: 0.85rem;
    margin-top: 0.25rem;
    word-break: break-all;
    min-height: 1.2em;
}

.success-text {
    color: green;
}

.error-text {
    color: red;
}

/* Helper for list in message */
.operation-list {
    text-align: left;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #333;
    font-weight: normal;
}
.operation-item {
    border-bottom: 1px solid #eee;
    padding: 5px 0;
}
.operation-item:last-child {
    border-bottom: none;
}
