/* General Styling */
body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: url('../src/background-login.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Top-right corner */
#top-right {
    position: absolute;
    top: 5px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icons and clock */
    font-size: 15px; /* Icon size */
    color: #fff; /* Icon color */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#top-right i {
    font-size: 15px; /* Set icon size */
}

#clock {
    font-size: 15px; /* Adjust clock size */
    font-weight: bold;
    font-family: "SF Pro Text", "Helvetica Neue", "Helvetica", "Arial", sans-serif; /* Update font */
}

/* Login Container */
#login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: relative;
}

/* Users Section */
#users {
    display: flex;
    gap: 150px; /* Space between users */
    transition: opacity 0.3s ease, transform 0.5s ease;
    align-items: center;
}

/* User */
.user {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    transition: transform 0.5s ease, opacity 0.3s ease;
    position: relative;
    width: 128px; /* Fixed width */
    height: 170px; /* Fixed height */
    overflow: visible; /* Allow overflow for extra content */
}

/* User Image */
.user img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px; /* Add padding below the image */
}

/* User Name */
.user p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff; /* Make text color contrast with background */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    transition: opacity 0.3s ease;
}

/* Password Container */
#password-container {
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 148px; /* Adjust positioning as needed */
    width: 100%;
}

#password-container.show {
    opacity: 1;
    transform: translateY(0);
}

/* Password Input Container */
#password-input-container {
    display: flex;
    align-items: center;
    width: 250px; /* Match the width of the input */
    position: relative;
}

#password-input {
    width: 100%;
    height: 35px;
    padding: 0 2rem 0 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 2rem; /* Adjust font size for better readability */
    background: rgba(255, 255, 255, 0.5); /* 50% transparency */
    backdrop-filter: blur(4px); /* Blur background */
    color: #000; /* Text color */
    font-family: "SF Pro Text", "Helvetica Neue", "Helvetica", "Arial", sans-serif; /* Update font */
    letter-spacing: 0.1rem; /* Space out middots */
    -webkit-text-security: disc; /* For WebKit browsers like Chrome */
    text-security: disc; /* For other browsers */
}

#password-input::-ms-reveal { /* For Internet Explorer */
    display: none;
}

#password-input::placeholder {
    color: #000; /* Placeholder text color */
    font-size: 1rem;
    letter-spacing: 0;
}

/* Password Icon */
#password-icon {
    color: #888; /* Grey color for the icon */
    font-size: 20px; /* Icon size */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); /* Center icon vertically */
}

/* Fade Overlay */
#fade-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    backdrop-filter: blur(10px); /* Apply blur effect to background */
    transition: opacity 0.3s ease; /* Shorter transition duration */
    z-index: 1000;
    opacity: 0; /* Start as invisible */
}

#fade-overlay.hidden {
    opacity: 0; /* Ensure it’s invisible */
}

#fade-overlay.show {
    opacity: 1; /* Make it visible */
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff; /* White text */
    z-index: 1001;
    font-size: 1.5rem;
    font-weight: 600;
}

#loading-screen .loading-icon {
    font-size: 3rem; /* Adjust size as needed */
    margin-bottom: 10px;
}

#loading-screen.hidden {
    display: none;
}

.hidden {
    display: none;
}

/* Bottom Icons Container */
#bottom-icons {
    position: fixed;
    bottom: 40px; /* Space from the bottom of the screen */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    display: flex;
    gap: 50px; /* Space between the boxes */
}

/* Icon Box */
.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px; /* Width of the box */
    height: 100px; /* Height of the box */
    border-radius: 10px; /* Rounded corners */
    color: #fff; /* Text color */
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    cursor: pointer;
    transition: background 0.3s ease;
}

.icon-box:hover {
    background: rgba(0, 0, 0, 0.1); /* Darker background on hover */
}

.icon-box i {
    font-size: 24px; /* Size of the icon */
    margin-bottom: 10px; /* Space between icon and text */
}

.icon-box p {
    margin: 0;
    font-size: 14px; /* Font size of the text */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow */
}
