/* Overall body layout */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Form container */
.register-container {
    background-color: white;
    padding: 20px 30px; 
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 380px; 
}

/* Form heading */
.register-container h2 {
    text-align: center;
    margin-bottom: 25px; 
    color: #333;
    font-size: 1.6rem; /* Slightly larger title */
}

/* Individual field container */
.form-group {
    margin-bottom: 18px; /* Increased spacing between fields */
}

/* Labels */
.form-group label {
    display: block;
    margin-bottom: 6px; 
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
    text-align: left;
}

/* Input styling */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: 100%;
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.95rem;
}

/* Dropdown styling */
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc; 
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.95rem;
    appearance: none; 
    background-color: white; 
    background-repeat: no-repeat;
    background-position-x: calc(100% - 10px);
    background-position-y: center;
    cursor: pointer;
}

/* Style for half-width fields (password + confirm password) */
.form-group.half-width-container {
    display: flex;
    justify-content: space-between;
    gap: 15px; /* Adds space between the two half-width elements */
}

.form-group .half-width {
    width: 100%; 
}

/* Submit button */
.register-container button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 15px; /* Increased padding */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease; 
    margin-top: 25px; /* Increased top margin */
    font-size: 1rem;
    font-weight: bold;
}

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

/* Error message styling */
.register-container p#message { 
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #dc3545; 
    font-weight: bold;
    min-height: 1.2em; /* Reserve space even when empty */
}

/* Footer text and link (Already have an account) */
.register-container p {
    text-align: center;
    margin-top: 15px; /* Increased margin */
    font-size: 0.9rem;
    color: #555;
}

/* Link styling */
.register-container a {
    color: #007bff; /* Consistent blue link color */
    text-decoration: none;
}

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