body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.register {
    background: #fff;
    padding: 30px;
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.register h2 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
}

.register input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.name-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.name-fields input {
    width: 100%;
    flex: 1;
    margin-bottom: 0;
}

/* Register button */
.register button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    box-sizing: border-box;
}

/* Disabled state */
.register button:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Enabled state */
.register button:not(:disabled) {
    background: #007bff;
    color: white;
}

.register button:not(:disabled):hover {
    background: #0056b3;
}

.register p {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
}

.register a {
    color: #007bff;
    text-decoration: none;
}

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

#error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
    display: none;
}

.errors {
    margin-bottom: 15px;
}

.errors p {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
    text-align: left;
}