html, body {
    height: 100%;
    margin: 0;
}

.login-body {
    font-family: Tahoma, 'Segoe UI', Verdana, Arial, sans-serif;
    overflow: hidden;
    background: #4f7bbf;
}

.login-screen {
    position: fixed;
    inset: 0;
    background-image: url('../img/login.png');
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: #4f7bbf;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.login-left-panel {
    flex: 1;
    height: 100%;
}

.login-right-panel {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-left: 8%;
    gap: 24px;
}

@media (max-width: 768px) {
    .login-screen {
        flex-direction: column;
        background-size: cover;
    }
    .login-left-panel {
        display: none;
    }
    .login-right-panel {
        justify-content: center;
        align-items: center;
        padding-left: 0;
        width: 100%;
        gap: 16px;
    }
}

.login-user-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 280px;
}

.login-user {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.15s ease, background-color 0.15s ease;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid transparent;
    width: 100%;
}

.login-user:hover,
.login-user-container.selected .login-user {
    opacity: 1;
}

.login-user-container.selected .login-user {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.login-avatar {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    background: #fff;
    transition: border-color 0.15s ease;
}

.login-user-container.selected .login-avatar {
    border-color: #f58a00;
    box-shadow: 0 0 6px rgba(245, 138, 0, 0.8);
}

.login-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-name {
    font-size: 15px;
    font-weight: normal;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    transition: font-weight 0.15s ease;
}

.login-user-container.selected .login-name {
    font-weight: bold;
}

/* Password prompt elements */
.password-prompt {
    width: 100%;
    padding-left: 68px; /* aligns with username text */
    margin-top: 6px;
    animation: slideDown 0.15s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.password-label {
    color: #dfebff;
    font-size: 11px;
    margin-bottom: 4px;
    font-family: Tahoma, sans-serif;
}

.password-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-input {
    width: 140px;
    height: 22px;
    border: 1px solid #7f9db9;
    padding: 0 4px;
    font-size: 12px;
    outline: none;
    border-radius: 1px;
}

.password-input:focus {
    border-color: #f58a00;
    box-shadow: 0 0 2px rgba(245, 138, 0, 0.5);
}

.password-btn {
    width: 22px;
    height: 22px;
    background: linear-gradient(180deg, #7ebd47 0%, #3e8e19 100%);
    border: 1px solid #2e6610;
    border-radius: 3px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    padding: 0;
}

.password-btn:hover {
    filter: brightness(1.12);
}

.password-btn:active {
    background: linear-gradient(180deg, #3e8e19 0%, #7ebd47 100%);
}

.password-btn span {
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.error-message {
    color: #ffd8d8;
    font-size: 10px;
    margin-top: 4px;
    font-family: Tahoma, sans-serif;
}
