/* Container for the form */
.register-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 90%; /* Ensure it adapts to smaller screens */
    box-sizing: border-box; /* Ensure padding doesn't affect overall width */
}

/* Heading style */
.register-container h1 {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'Georgia', serif;
    color: #444;
    font-size: 24px; /* Slightly larger font size */
}

/* Form styling */
.register-container form {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    width: 100%; /* Full width on small screens */
    box-sizing: border-box; /* Ensure padding doesn't affect overall width */
    margin: 0 auto; /* Center the form on the page */
}

/* Label styling */
.register-container label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
    font-size: 16px;
}

/* Input styling */
.register-container input[type="text"],
.register-container input[type="password"],
.register-container input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Georgia', serif;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

/* Input focus state */
.register-container input[type="text"]:focus,
.register-container input[type="password"]:focus,
.register-container input[type="email"]:focus {
    border-color: #3498db;
}

/* Error and success message styling */
.register-container p[style="color: red;"],
.register-container p[style="color: green;"] {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px; /* Slightly smaller for better readability on mobile */
    text-align: center; /* Center align the messages */
}

/* Button styling */
.register-container button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: 'Georgia', serif;
}

/* Button hover state */
.register-container button:hover {
    background-color: #2980b9;
}

/* Spacing between form fields */
.register-container form > *:not(:last-child) {
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .register-container {
        padding: 15px;
    }

    .register-container h1 {
        font-size: 20px; /* Slightly smaller for small screens */
    }

    .register-container input[type="text"],
    .register-container input[type="password"],
    .register-container input[type="email"] {
        font-size: 14px; /* Adjust input font size for small screens */
        padding: 10px;
    }

    .register-container button {
        font-size: 16px; /* Adjust button font size for small screens */
        padding: 10px;
    }
}
