﻿/* General form styling */
.my-fluid-container {
    width: 100%;
    padding: 10px;
}

.panel {
    margin: 0 auto;
    width: 100%;
    max-width: 700px; /* Reduced the max-width to make it more compact */
    border: 2px solid #bce8f1;
    padding: 15px;
}

.panel-heading {
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 10px; /* Reduced margin between form groups */
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertically center label and input */
}

.form-label {
    width: 25%; /* Reduced label width */
    margin-right: 5px; /* Reduced margin between label and input */
    font-weight: bold;
    white-space: nowrap; /* Prevent label text from wrapping */
}

.input-container {
    flex: 1;
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 8px; /* Reduced padding */
    box-sizing: border-box;
}

input[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

    input[type="submit"]:hover {
        background-color: #0056b3;
    }

textarea {
    resize: vertical;
}

.text-danger {
    color: red;
}

.read-links {
    flex-wrap: wrap;
    align-items: center;
}

.spacer {
    width: 20px; /* Adds some space between the two label+link pairs */
}

/* Media Query for smaller screens */
@media screen and (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-label {
        width: 100%; /* Full width for labels on small screens */
        margin-bottom: 5px; /* Reduced margin */
    }

    input[type="submit"] {
        margin-top: 20px;
    }

    .panel {
        max-width: 100%;
        padding: 10px;
    }
}
