/* Full-page background styling */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-image: url('../img/bkgrnd_register2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Login container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Glassy login form */
.login-form {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 20px 40px;
    width: 90%; /* Responsive width for mobile */
    max-width: 400px;
    animation: slideIn 0.8s ease-out;
}

/* Slide-in animation */
@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Form heading */
.login-form h1 {
    text-align: center;
    font-size: 28px;
    color: #000;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

/* Form fields */
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    color: #000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.login-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.5);
}

/* Role selection styling */
.role-selection {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #000;
}

.role-selection label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.role-selection input {
    margin-right: 8px;
    accent-color: #007bff;
}

/* Login button */
.login-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #007bff, #0056b3);
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: linear-gradient(to right, #0056b3, #003d80);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Links styling */
.additional-links {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Spacing between links */
}

.additional-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.additional-links a:hover {
    text-decoration: underline;
}

/* Error messages */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

/* Responsive styling */
@media (max-width: 768px) {
    .login-form {
        padding: 20px;
        width: 90%;
        max-width: 350px;
    }

    .login-form h1 {
        font-size: 24px;
    }

    .login-form input[type="email"],
    .login-form input[type="password"] {
        font-size: 13px;
        padding: 10px;
    }

    .login-form .password-input-wrap input[type="password"],
    .login-form .password-input-wrap input[type="text"] {
        font-size: 13px;
        padding: 10px 40px 10px 10px;
    }

    .role-selection label {
        font-size: 12px;
    }

    .login-button {
        font-size: 14px;
        padding: 10px;
    }

    .additional-links {
        gap: 8px; /* Reduced spacing for smaller screens */
    }
}
