body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    min-height: 100vh;
}

.container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin-top: 40px; /* Add some margin from the top */
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
}

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

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

input[type="url"],
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

button[type="submit"],
.result button {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
    width: 100%; /* Make button full width */
    margin-top: 10px; /* Add some space above the button */
}

button[type="submit"]:hover,
.result button:hover {
    background-color: #0056b3;
}

.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
}

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

.result {
    margin-top: 25px;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

.result p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-weight: 500;
}

.result input[type="text"] {
    width: calc(100% - 85px); /* Adjust width to fit button */
    margin-right: 10px;
    background-color: #fff; /* Ensure readable background */
    display: inline-block; /* Align input and button */
    vertical-align: middle;
}

.result button {
    width: 75px; /* Fixed width for copy button */
    display: inline-block;
    vertical-align: middle;
    margin-top: 0; /* Reset margin */
}
