﻿/* General Form Styling */
#registerForm {
    max-width: 600px; /* Increased width to accommodate two-column layout */
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

    #registerForm h2 {
        text-align: center;
        margin-bottom: 20px;
        color: #333;
    }

/* Two-Column Layout */
.row {
    display: flex;
    gap: 15px; /* Space between columns */
    margin-bottom: 15px;
}

.col-md-6 {
    flex: 1; /* Equal width for both columns */
}

.form-floating {
    position: relative;
    margin-bottom: 15px;
}

    .form-floating input,
    .form-floating select {
        height: 50px;
        padding: 10px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 100%; /* Ensure inputs take full width of their container */
    }

    .form-floating label {
        position: absolute;
        top: 50%;
        left: 10px;
        transform: translateY(-50%);
        font-size: 14px;
        color: #aaa;
        transition: all 0.3s ease;
    }

    .form-floating input:focus + label,
    .form-floating input:not(:placeholder-shown) + label,
    .form-floating select:focus + label,
    .form-floating select:not(:placeholder-shown) + label {
        top: 0;
        font-size: 12px;
        color: #007bff;
    }

/* Profile Image Preview */
#imagePreviewCanvas {
    width: 70px;
    height: 70px;
    border-radius: 50%; /* Circular frame */
    border: 1px solid #ccc;
    display: block;
    margin-left: auto; /* Align to the top-right corner */
    margin-top: -10px; /* Adjust positioning */
}

/* Submit Button */
button#registerSubmit {
    height: 50px;
    font-size: 16px;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    width: 100%; /* Full-width button */
}

    button#registerSubmit:hover {
        background-color: #0056b3;
    }

/* Multi-Select Dropdown Styling */
select[multiple] {
    height: auto; /* Allow dynamic height based on options */
    min-height: 100px; /* Minimum height for better usability */
}

/* Error Messages */
.text-danger {
    font-size: 14px;
    color: #dc3545;
    margin-top: 5px; /* Add spacing below error messages */
}

/* Small Helper Text */
.form-text {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}
