body, .navbar, .content, .modal-title, .modal-body, input, select, button, .error-message, .links a, .form-grid label {
    font-family: Arial;
}

body {
    font-family: Arial;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        url('back.jpg'); /* Replace 'back.jpg' with your actual image path */
    background-size: cover; /* Cover the entire background */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent background image from repeating */
    height: 100vh;
    color: white; /* Set text color to white */
}

.navbar {
    position: relative;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background for navbar */
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 50px; /* Adjusted logo width */
    margin-left: 40px;
}

.login-btn {
    padding: 8px 16px; /* Smaller padding for the login button */
    margin-right: 40px;
    background-color: transparent; /* Transparent background */
    color: white;
    border: 2px solid white; /* White border */
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px; /* Smaller font size */
}

.login-btn:hover {
    background-color: white; /* White background on hover */
    color: #007bff; /* Blue text on hover */
}

.content {
    text-align: center;
    margin-top: 300px;
}

.content1 h1.blur {
    color: #ffffff; /* White text color */
    font-size: 34px;
    animation: fadeInUp 2s ease-out, floatText .9s cubic-bezier(0.42, 0, 0.58, 1) infinite; 
    animation-delay: 0s, 2s; 
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px); /* Start slightly below */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Move to the final position */
    }
}

@keyframes floatText {
    0% {
        transform: translateY(0); /* Start at the initial position */
    }
    25% {
        transform: translateY(-2px); /* Move slightly up */
    }
    50% {
        transform: translateY(0); /* Return to the initial position */
    }
    75% {
        transform: translateY(2px); /* Move slightly down */
    }
    100% {
        transform: translateY(0); /* Return to the initial position */
    }
}

.modal-header, .modal-footer {
    border: none;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
}

.modal-body {
    padding: 10px 0;
}

input[type="email"], input[type="tel"], select {
    width: 100%;
    padding: 7px;
    margin: 7px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
input[type="password"]{
    width: 95%;
    padding: 7px;
    margin: 7px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
input[type="text"]{
    width: 100%;
    padding: 7px;
    margin: 7px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}
button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.error-message {
    color: red;
    margin-top: 10px;
}

.links {
    text-align: center;
    margin-top: 10px;
}

.links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px;
}

.links a:hover {
    text-decoration: underline;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.form-grid div {
    display: flex;
    flex-direction: column;
}

.form-grid select, .form-grid input[type="checkbox"] {
    width: auto;
}

.form-grid label {
    margin-left: 5px;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .login-btn {
        margin-right: 0;
    }

    .content {
        margin-top: 200px;
        font-size: 28px; /* Smaller font for smaller screens */
    }

    .form-grid {
        grid-template-columns: 1fr; /* Single column layout for smaller screens */
    }

    button[type="submit"] {
        font-size: 14px; /* Adjust button font size */
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 5px;
    }

    .logo {
        width: 40px; /* Smaller logo for very small screens */
    }

    .login-btn {
        padding: 6px 12px;
        font-size: 12px; /* Even smaller font size for very small screens */
    }

    .content {
        margin-top: 150px;
        font-size: 24px; /* Further smaller font for tiny screens */
    }
}
.modal-body {
    padding: 10px 0;
    max-height: 70vh; /* Set a maximum height for the modal body */
    overflow-y: auto; /* Enable vertical scrolling */
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }
    
    .logo {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .login-btn {
        margin-right: 0;
    }

    .content {
        margin-top: 200px;
        font-size: 28px; /* Smaller font for smaller screens */
    }

    .form-grid {
        grid-template-columns: 1fr; /* Single column layout for smaller screens */
    }

    button[type="submit"] {
        font-size: 14px; /* Adjust button font size */
    }

    /* Ensure modal is scrollable on small screens */
    .modal-body {
        max-height: 60vh; /* Adjust modal body height for small screens */
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 5px;
    }

    .logo {
        width: 40px; /* Smaller logo for very small screens */
    }

    .login-btn {
        padding: 6px 12px;
        font-size: 12px; /* Even smaller font size for very small screens */
    }

    .content {
        margin-top: 150px;
        font-size: 24px; /* Further smaller font for tiny screens */
    }

    /* Ensure modal is scrollable on very small screens */
    .modal-body {
        max-height: 50vh; /* Reduce modal body height for very small screens */
    }
}
/* Form input styling */
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="password"],
form select {
    width: 100%; /* Adjusted width from 100% to 80% */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Password container styling */
.password-container {
    position: relative;
    width: 100%; /* Adjusted width */
    margin-bottom: 10px;
}

.password-input {
    width: 100%; /* Full width inside the container */
    padding-right: 40px; /* Space for the eye icon */
}

/* Eye icon styling */
.password-container i {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
}

