.form-floating label {
    color: grey !important;
}

/* Ensure the placeholder (empty option) is styled */
.form-select option[value=""] {
    color: grey;
}

/* Base layout for the page */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Work Sans', sans-serif;
}

body.signup-active {
    overflow-y: auto;
}

/* Allow scrolling only on landscape phones (short screens) */
@media (orientation: landscape) and (max-height: 500px) {
    html, body {
        overflow-y: auto !important;
    }
}

* {
    font-family: 'Work Sans', sans-serif;
}


.card {
width: 100%;
max-width: 350px;
border-radius: 15px !important;
padding-left: 1.5rem;
padding-right: 1.5rem;
box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}


/* Input field adjustments */
.form-floating {
    margin-bottom: 0.75rem; /* Reduced margin between inputs */
}

/* Adjusting the input field height by reducing padding */
.form-control {
    border-radius: 10px;
    padding: 0.375rem 0.75rem; /* Reduced padding for smaller height */
    border: 1px solid #ccc;
    font-size: 0.9rem; /* Slightly smaller font size */
}

/* Adjust the height and padding of the select box */
.form-select {
    border-radius: 0;
    border: 1px solid #ccc;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
}

/* Button adjustments */
.btn {
    padding: 0.5rem 1rem; /* Reduced padding for smaller button height */
    font-size: 1rem;
}

/* Adjust logo size */
#infratieLogo {
    max-width: 200px;
    margin: 0 auto 1rem auto;
    display: block;
}

/* Password strength meter */
.progress {
    margin-top: 0.5rem;
}

.progress-bar {
    border-radius: 0 !important;
}

/* Styling the modal */
.modal-content {
    border-radius: 0 !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

/* Error message styling */
.invalid-feedback {
    color: red;
    text-align: left;
}

/* Adjust the form layout for smaller screens */
@media (max-width: 768px) {
.card {
    max-width: 90%; /* Adjust card width for smaller screens */
    padding: 0.5rem;
}

.form-floating {
    margin-bottom: 0.8rem; /* Adjust margin between inputs */
}

.btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

#infratieLogo {
    max-width: 150px; /* Adjust logo size on smaller screens */
}
}

/* Adjust the card for medium screens like tablets */
@media (min-width: 768px) and (max-width: 1024px) {
.card {
    max-width: 500px; /* Adjust card width for iPad */
    padding: 1rem;
}

.form-control, .form-select {
    font-size: 1rem; /* Adjust font size */
    padding: 0.5rem 0.9rem;
}

.form-floating {
    margin-bottom: 0.8rem; /* Adjust margin */
}
}

/* Responsive adjustments for larger screens */
@media (min-width: 1025px) {
.card {
    max-width: 450px; /* Adjust card width for larger screens */
}

.form-control, .form-select {
    font-size: 0.85rem; /* Make input fields smaller */
    padding: 0.3rem 0.7rem; /* Even smaller padding for compact layout */
}

.form-floating {
    margin-bottom: 0.6rem; /* Reduce margin even more */
}
}

/* Adjust the card for large screens like 27-inch 1440p */
@media (min-width: 1600px) {
.card {
    max-width: 600px; /* Increase card width */
}
}

/* Adjust the card for 32-inch 4K screens */
@media (min-width: 2560px) {
.card {
    max-width: 750px; /* Even larger card width */
    padding-left: 2rem;
    padding-right: 2rem;
}
}

/* Adjust the card height for extra small screens */
@media (max-width: 576px) {
.card {
    max-width: 90%;
}
}
/* Enhance button shadow */
.btn-primary {
    border-radius: 10px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5); /* Darker, closer shadow for better visibility */
}

/* Tablet landscape (iPad): shrink the form so it fits the short viewport with
   breathing room top and bottom, no scrolling. Must stay last so it wins over
   the min-width:1025px block — iPad landscape is 1080-1366px wide. */
@media (orientation: landscape) and (min-width: 768px) and (min-height: 501px) and (max-height: 1024px) {
    #desktopView, #mobileView {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .card {
        max-width: 400px;
        padding: 0.5rem 1.25rem;
    }

    #infratieLogo {
        max-width: 130px;
        margin-bottom: 0.5rem;
    }

    .form-floating {
        margin-bottom: 0.5rem;
    }

    /* Bootstrap sizes floating-label inputs at 3.5rem; tighten to reclaim height */
    .form-floating > .form-control,
    .form-floating > .form-select {
        height: calc(2.9rem + 2px);
        padding-top: 1.15rem;
        padding-bottom: 0.35rem;
        font-size: 0.85rem;
    }

    .form-floating > label {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.35rem 1rem;
        font-size: 0.9rem;
    }
}
